Why is it correct to use it without pointer:
void UBullCowCartridge::ProcessGuess(FString Guess)
I would think you should use it like this, because the string variable Guess is a pointer:
void UBullCowCartridge::ProcessGuess(const FString& Guess)
It’s not a pointer. In a declaration &
means reference not address-of. References are covered later in the course and ProcessGuess will be changed to use a reference.
1 Like
Yes, Thanks I saw it later on
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.