Is there any way (cout function?) to display the contents of the input queue without discarding them all?
Assuming I input "ABC", cin.get() takes "A" and leaves "BC" in the input queue, right?
1 2 3 4 5 6 7 8 9 10 11 12
#include <iostream>
usingnamespace std;
int main ()
{
char letter;
cout << "Enter some letters: ";
letter = cin.get();
cout << "The first letter is " << letter;
cout << // [input queue]
return 0;
}