CPP, wie Sie eine Variable eingeben, ohne die Eingabetaste zu treffen

int x = _getch();
cout << x;
Super Skipper