I was not able to do this. What I want is this, While the code is working in real time, the user will be able to take any action he wants.
(...)
int main (){
time = 60;
string input;
cout << "Time: " << time << endl << endl; // Time needs to decrease every second.
// (time--,sleep(1000))
cout << "Input: ";
cin >> Input; // The user can take the action he wants at this time.
(...)
}
I'm waiting for your help, thank you.