Hi all.
I can't get this to compile;
#include <iostream>
#include <string>
using namespace std;
int main ()
{
int number;
string response;
for (number=5; response!='Y';)
{
cout <<number <<endl;
cout <<"Had Enough (Y/N)?";
cin>>response;
}
cin.get ();
cin.get ();
return 0;
}
when i try to compile this message comes up:
no match for 'operator!=' in 'response!='Y''
What does this mean? What can i do to get it to work?
Any help would be greately appreciated.