Use of undeclared identifier ERROR

Ive gotten stuck around the middle of the lecture. I have pretty much what is on the screen but can’t seem to find the problem with what is wrong with my private variables.

your variables exist within the FBullCowGame class in the .h file but your methods in your .cpp are not namespaced to the same class

maybe try this for instance

int FBullCowGame::GetMaxTries() {
    return MyMaxTries;
}

Privacy & Terms