Timeout

I was wondering what code to use to create a timeout message which then loops back to the start after a few seconds.

For example:

If the user doesn't enter a message within 10seconds, the program timeouts and says a message 'timeout' before displaying a countdown timer to restart the program/go back to a certain point in the program.

I would enter a code that I have made but I just don't know where to start for this. I read on another forum about '(timeout)' as a command but not sure how to use it.

First time coding and using C++. Thanks for the help!
Topic archived. No new replies allowed.