here is my code:
FBullCowGame.h
#define TMap std::map
FBullCowGame.cpp
bool FBullCowGame::isIsogram(FString Word) const{
if (Word.length() <= 1) return true;
TMap<char, bool> LetterSeen;
for (char Letter : Word) {
Letter = tolower(Letter);
if (LetterSeen[Letter]) {
return false;
}
else
LetterSeen[Letter] = true;
}
return true;
}
Buf if there is a ; after #define like this:
#define TMap std::map;
the compiler will complain about it:
Hope this infomation would helpful.