We use console input (cin) for input right? well but with this code:
cin >> x;
for (int i = 0;i<100;i++) {
Sleep(2000);
cout << i << " ";
}
The user has to input something for the for loop to execute.
How can i write a code where the user can input whenever he wants to? In the previous example the user has time (since i used Sleep()) to input, the output isn't instantaneous. So what do i use so that whenever the user feels like it he can input something? And not only be able to input when the program reaches a cin statement.
Also, if i want the user to click escape, how can i do that?
Also, how do i prompt the user for mouse clicks??
Lots of questions i know
