wtd wrote:
Flikerator wrote:
Ok I think I get it. So I only have to but a std::cin.ignore(); once in my program, not after each time I ask the user for input (Like every std::cin >> var).
The real question you need to ask yourself is this: Do you know what std::cin.ignore() is doing?
It discards input entered by the user. I need to know if it does it just once, or throughout the entire program.
It does it just the once, and just for that particular input stream.