alex
02-14-2001, 01:05 PM
i am not a cs major but an ee who needs help w/ a simple programming assignment.
the problem requires one to enter string inputs using the keyboard. when
a flag sequence is detected a prompt is displayed. all this is done w/out
hitting return for each character entered. my question is how can this be
done? i'm used to writing programs where inputs are entered and then the
return key is used to process the input. how can one type inputs and at
the same time have the computer read the inputs to detect the flag, all w/out
hitting enter?
thanks
the problem requires one to enter string inputs using the keyboard. when
a flag sequence is detected a prompt is displayed. all this is done w/out
hitting return for each character entered. my question is how can this be
done? i'm used to writing programs where inputs are entered and then the
return key is used to process the input. how can one type inputs and at
the same time have the computer read the inputs to detect the flag, all w/out
hitting enter?
thanks