Yes, I'm having a little trouble with the streams. I will make myself clear before I get to my problem: If you think you need to see my code to help, then you probably can't help me!
I need to know how to handle multiple forms of input. That being, say I need to work with integers, but the user sends in a character, and then instead of blowing up, it stops and tells the user it only accepts in integers, and then requests for input again.
I need it to use integers, because the integer is also being sent to functions to be evaluated as integers. It is unreasonable for me to test each character, and then return their integer value, so I need to just throw out character input.
I can't get it done! And, for my class project, I need it to be done. My teacher hasn't exactly been helpful.
This actually has been an ongoing problem for me to solve over the last 10 months I've been working with c++.. Kind of annoying! Thanks for any help you can offer!