I have been asked to add a pause to an existing C++ program.
The user does not want to use the Windows builtin scheduler for reasons they won't share with me.
Is the correct way of doing this something like:-
void Sleep(10000);

cout << "Paused...." << endl;
cin.get();

This will wait until the user hits "enter".

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.