In pure C ++, probably not, you will need certain OS code. But you can use a platform-independent OS shell such as Qt (although this may be a little redundant for your rather simple problem).
EDIT: The simplest thing you could do is actively block the program in a loop that constantly checks the current time until the deadline is reached, but this is probably not a very useful solution, Thus, without threads or some sort of controlled timer events (like every OS) you won't get very far.
source share