Hey there:
I am done writing a rather large program for school and the only thing that is still driving me nuts is how to exit the program based on the fact that the return/carriage key was pressed. All input is stored as characters in an array... something like this:
char input1[9];
cout << "Enter number 1 (0-99999999):";
cin >> input1;
At this point I need to be able to determine if the user simply hits the ENTER KEY/CARRIAGE RETURN. I would appreciate any help I can possibly get because I have spent hours on this and tried ' ', '\n', and anything else I could think of....
Thank you very much!
Stefan