I want to know how can I use async sleep for fixing problem. Can it be done in C++? Someone help me please :)
Problem description
Print Hello world
Sleep(20000) <- I can't do anything
WM_CLOSE
How can I fix it?
cout << "Hello World!";
Sleep(20000);
::PostMessage(::GetConsoleWindow(), WM_CLOSE, 0, 0);
I'm noob, please tell me your answer more easier.