need help with cin and blank inputs
Posted: Tue Jul 23, 2002 9:05 pm
ok what seems to be tripping me up on a few of these contest is how to deal with a blank input such as a space or carraiage return. I am trying to use cin and can't seem to trap it.
I have tried
while(cin >> input)
but i loop forever.
I have tried
while(cin >> input)
but i loop forever.