PrepareGame member function cannot be declared outside of its class

Hello, I got stuck in Bulls and cows game chapter 33 - booleans.
After doing a lot of changes 4 errors appeared. I’m sending the whole code below because it’s complicated. It goes gradually.





The error message says: The “UBullCowCartridge :: End of Game” member function cannot be declared outside of its class.

Header file.

The second error is the same but in the SetupGame function(PripravHru).
3 and 4 errors are only consequences of the 1 and 2 errors I think.
Please help.

It would be better if you pasted the errors also. Even so, the first thing I saw was that:

1 Like

Thank you so much !:+1: One would not believe that it would be such a small mistake!
:grin::joy:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms