Feb 11, 2016 at 9:12pm UTC
So i don't know why i am getting undeclared identifier for yesnochoice in the while loop
int main()
do
{
int-
-
-
string -
-
-
string yesnochoice;
code code code
code code code
//TYPE (y/n) TO PLAY AGAIN
cout << "Do you want to play Again?" << endl << "(y/n)" << endl;
cin >> yesnochoice;
} while (yesnochoice = "y" || "Y" || "Yes" || "yes");
system("pause");
return 0;
}
Why am I getting this error, and how do I fix it?
Last edited on Feb 11, 2016 at 9:12pm UTC
Feb 11, 2016 at 9:26pm UTC
Did you ignore half my post? Look at the second half, I gave you the solution.
If you're still having errors after that, then you're gonna have to post your complete code =)
Feb 11, 2016 at 9:36pm UTC
I started this yesterday, and its the first thing ive ever coded (besides web dev)
Ignore the to do list area. I know that its wrong just dont NEED that part quite yet.
Last edited on Feb 11, 2016 at 10:00pm UTC