Wow...this is interesting:What in the world does that do?Code:cin.ignore(cin.rdbuf()->in_avail()+1);
Printable View
Wow...this is interesting:What in the world does that do?Code:cin.ignore(cin.rdbuf()->in_avail()+1);
problem solved thanks...
It's a funny little 'look what I can do trick' that seems to come around some times. I think it will pause the program until it reads a line, and discard all the input that was on that line.