I need help with closing the program by entering 'quit'
for example.
while(true)
{
cout << "enter a name" << endl;
std::getline (std::cin,input);
if(input =='quit')
{
break;
}
}
it is not breaking out or quiting, also how come you can't compare a string to a int?
i.e. : while (input != 'quit') <<-- that won't work also.