Programming Wiki: C Pause

Programming Wiki : CppPause

WikiHomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register
Most recent edit on 2007-07-05 13:01:28 by MarkEdgar [revert spam]

Additions:

C++ Pause

Generic c++ Manipulating cin to pause for anykey


Deletions:

C Pause

Generic c Manipulating cin to pause for anykey




Edited on 2007-07-04 23:25:27 by YtwMar

Additions:

C Pause

Generic c Manipulating cin to pause for anykey


Deletions:

C++ Pause

Generic c++ Manipulating cin to pause for anykey




Oldest known version of this page was edited on 2006-04-28 00:58:14 by ScottRippee []
Page view:

C++ Pause

Cpp


Windows Specific Pause for any key
system("PAUSE");


Generic c++ Manipulating cin to pause for anykey
void pause()
{
    std::cin.clear();
    std::cin.ignore(std::numeric_limits<std::streamsize>::max()); //
    // Clear whatever's still in the buffer
    std::cout << "Press Enter to continue . . .\n";
    std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n');
}
Powered by Wikka Wakka Wiki 1.1.6.0
Page was generated in 0.0357 seconds