28th May 2022, 3:50 AM
Pranav
Pranav - avatar
3 odpowiedzi
+ 2
Do what compiler tells you to do 1) remove extra qualification "EVEN::" on member "getout ()" 2) make getin () and getout () public. https://code.sololearn.com/c3F8bP58aVm8/?ref=app
28th May 2022, 4:06 AM
Arsenic
Arsenic - avatar
+ 1
Why not organize your class methods inside the class declaration? A tidy code is always easier to read. The extra qualification Even:: is used only if you are defining the method outside the class Even, like what you did in getin(). But as I said, it is messy code. Also, if getout() is supposed to be private, then you should not be calling it in main(). Use the public function getin() to call it instead. See the comment I made in your code.
28th May 2022, 4:12 AM
Bob_Li
Bob_Li - avatar
0
Arsenic thx bro 💥
28th May 2022, 4:12 AM
Pranav
Pranav - avatar