Hi, I’m new to C++, and this might sound like a very simple question but,
In lesson 51 “Coding The Basic Game Loop”, I made the Printline to show the HiddenWord variable value like this:
PrintLine(TEXT("You have Lost!, the word was ") + HiddenWord);
However, for what I learned so far in the course I would have expected it to work with the Insertion Operator “<<” like this:
PrintLine(TEXT("You have Lost!, the word was ") << HiddenWord);
This doesn’t work, but I don’t understand why.
If anyone can give me a hint of what should be looking for so I could read and learn more about this it will be appreciated.
Thanks!