How do I handle white-space and return-key if the program expects the user to enter text (a name for instance).
char ch[100];
cout << "enter something: ";
cin >> ch;
cout << ch << endl;
How can the program be notified if the user
- just press return
- space + return