I\'m coding a program that reads data directly from user input and was wondering how could I read all data until ESC button on keyboard is pressed. I found only something li
#include #include using namespace std; int main() { int number; char ch; bool loop=false; while(loop==false) { cin>>number; cout<