Hello guys! I have a question for you and I'm sorry if I'm wasting your time. I want to know if there is any function that can help you to introduce a value in a certain time. For example : In the next 3 seconds : cin>>n; If you don't introduce a value in 3 seconds the program will go further.
Using Threading you can achieve this thing with the help of sleep() sleep thread for 3000ms i.e 3Sec. sleep(3000)