well i recently took up C++, and have had a hell of a time with it. I was hoping i could get some help here if possible.
first things first. i have had a pain in the ass time trying to keep a window open that uses user input. i know for a program that dosnt get input from a user you can just use cin.get();. however if the program gets user input than the program will just pass right throught the cin.get();. so what else may i use for this purpose?



LinkBack URL
About LinkBacks



Sure, the most likely interpretation is that all characters in the buffer are discarded, but that's what ignore does, in a more general way. At best, with that interpretation, sync is redundant for istream, at worst, it's non-portable for any use.