So I got really confused.
Differences of these Return Values?
For the first two:
return Guess;| return string();
// get a value from the player
string GetGuessAndPrintBack()
{
cout << "Enter your guess: ";
string Guess = "";
getline(cin, Guess);
// prints the guess back
cout << "Your guess was " << Guess << endl;
cout << endl;
return string(); // or return Guess;
}
For the others:
| return; | return 0;| return void 0;(not sure if this one exist though)
Can any of this be used in that string function above? And when do we use them? Their differences?
Thank you guys!