EP. 37: Must use 'struct' tag to refer to type 'countBullCow' in this scope

Not sure where I am going wrong here:

FBullCowGame.hpp "

struct countBullCow {
int32 Bull = 0;
int32 Cow = 0;
};

class FBullCowGame {
(…)
countBullCow SubmitGuess(FString);
}

"

FBullCowGame.cpp "

countBullCow FBullCowGame::SubmitGuess(FString) {
MyCurrentTry++;

countBullCow countBullCow;  << ERROR SHOWS UP HERE

return countBullCow;

}

"

Privacy & Terms