hi narue i would like to ask if this method should be called after ever cin statement? the reason i ask this is that if i write a program and i have 2 cin >> text;
statements then at the end before my return 0;
i have to use 2 cin.get();
statements to clear the newlines left in the buffer. i was thinking of trying a loop to eat everything but i don't know if that would cause problems.
char ch;
while (!std::cin.eof())
{
cin.get(ch);
}