M
Michael Angelo Ravera
Is there a reasonable way (apart from parsing the line myself which I
can do, but would like to avoid) to have an extract fron cin return a
null string when a (second) line ender is entered, but also to ignore
other whitespace characters before starting the extract?
The situation I have is that I would like to present a default value
and have the user accept it by simply pressing the retrun key, but to
enter the proper value, if the default is unacceptable.
can do, but would like to avoid) to have an extract fron cin return a
null string when a (second) line ender is entered, but also to ignore
other whitespace characters before starting the extract?
The situation I have is that I would like to present a default value
and have the user accept it by simply pressing the retrun key, but to
enter the proper value, if the default is unacceptable.