0
How do I take input from user in a loop without stoping loop?
I mean, I want to make my own timer that counts to 15s. It works good but in any moment between 0s and 15s, a user should enter an number, however... When cin is called the timer stops... Any idea about how to do that? https://code.sololearn.com/cksak2790NSO/?ref=app
2 Answers
+ 2
Use threads learn how to use them here https://www.geeksforgeeks.org/multithreading-in-cpp/
+ 1
boolean Tyvm It's a good way đ... I can do what a want