I'm having some trouble with setting time out for cin>>
.
After 5 seconds, if the user didn't input anything, skip this cin>>
and do the next line.
I tried using threads but I can't skip this cin>>
. The cin
thread is still running until it got an input.