I've tried Googling this and can't find a solution yet. It's my understanding from class that cin.get() should accept any character, including tab, whitespace, or enter. However, when I'm using it, it ignores all input until enter/newline. I'm using Dev-C++ 5.11. If I don't use cin.ignore(), the program doesn't pause at cin.get(), which is expected. With cin.ignore(), cin.get() ignores everything (although the keys pressed appear on screen) until enter is pressed. Thank you.
This is the program stripped down to just this relevant part.
Code:
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main()
{
float Tickets;
cout << "\nPlease enter number of tickets sold: ";
cin >> Tickets;
cin.ignore();
cout << "\nPress any key for results . . ."; cin.get();
}