I am no pro but I think I can help you out.
You cannot use them like this and you don’t need to.
So remove fBullCowGame::MyCurrentTry() and fBullCowGame::MyMaxTries.
Maybe you should just do that, don’t read the following explanation and keep following the videos.
These are private variables of your header.
When needs be you can modify them from the fBullCowGame.h,inside class FBullCowGame, under private:
example:
(in the file FBullCowGame.h)
class FBullCowGame {
public:
…
private:
int32 MyCurrentTry = 10;
};
or in fBullCowGame.cpp, inside a function definition
example:
(inside fBullCowGame.cpp)
void fbullCowGame::Example()
{
MyCurrentTry = 3;
}
But you need to declare the function inside your fBullCowGame.h first
(inside fBullCowGame.h)
class FBullCowGame {
public:
Example();
…
private:
…
};
These are private because you don’t want to mess up the system your building.