I am getting an error on this code. Is it to do with whats in the while loop? How do i get it working?
Basically i want to be able to take in letter or number variables, and each would output something, and if they type exit it breaks out of the loop.
#include <string>
string input;
while (input != 'exit')
{
cout << "OS#: ";
getline (cin, input);
if (input == 'a')
{
cout << "hello";
}
}