I am sure this is super simple or dumb but I cannot get my code to work due to the error "no operator “>>” matches these [what I named my game]. It seems to be referring to an issue with the syntax where I put the cin >> Guess;
Can anyone help me figure out exactly what I am doing wrong here?
You’ve forgotten to add #include <string>
.
You need to include it because basic C++ does not contain the string type from default.
If you do not want to use the #include <string>
you can always use char* this represents a collection of characters aswell.