I don’t know why but while i start to create a pseudo code…I always get drifted away and start to code instead.
This has been not covered so far in lecture 63 but still somehow i figured out the loop and also it is working upon compiling in Unreal.
Don’t know how instructors are going to approach it but here is my Isogram checking code.
bool UBullCowCartridge::IsIsogram(FString Word)
{
for (int32 i=0; i<=Word.Len()-1; i++)
{
TCHAR CheckChar = Word[i];
for (int32 f= i+1; f<=Word.Len()-1;f++)
{
if (CheckChar == Word[f])
{
PrintLine(TEXT("Oops, you have repeated a letter"));
PrintLine(TEXT("You need to write an Isogram"));
}
}
}
return true;
}
Kindly correct me if I’m wrong anywhere.
Thank You