I am writing a program that asks for numeric input until a negative number is given. My question is how do I test for no input? I currently have:
if ( userInput == "" )
{
cout << "NOTHING TO PROCESS" << endl;
}
But I get: " ISO C++ forbids comparison between pointer and integer". What do I need to do in order to get this to work properly?