Can someone please give me a simple answer on how do I read a characters till the end of the line? I have tried typing
cin >> CHAR;
if (CHAR == '\n' || CHAR == '\0') cout << "?" << endl;
and none of this work for me, it just ignores this and reads further.