istream >> int empty input
When I use the overloaded right shift operator of istream on an integer like in:
Is there a way to find out if the input was empty like when you just press enter when prompted?
Or do I have to first input into a string, check if it's empty and parse then in another step?
Thanks,
JoR
You have to parse.
kthx
Topic archived. No new replies allowed.