Thanks for the suggestion Daved. You are correct. The code does ignore the .x portion of the floating point value that is entered and goes on without putting cin into the error state. But, in the...
Type: Posts; User: duffsb
Thanks for the suggestion Daved. You are correct. The code does ignore the .x portion of the floating point value that is entered and goes on without putting cin into the error state. But, in the...
Hello,
I subscribed to get help with a similar problem from my C++ course and saw this thread. I wanted to add some things I found when working with cin. I think the above handles validation of...