C++ School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

 

Code Snippets

  

C++ Source Code


Welcome to Dream.In.Code
Become a C++ Expert!

Join 306,728 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,530 people online right now. Registration is fast and FREE... Join Now!





Pause Window

Pauses the DOS window without using system commands

Submitted By: ImaSexy
Actions:
Rating:
Views: 132

Language: C++

Last Modified: November 1, 2009

Snippet


  1. #include <limits>
  2.  
  3. void pause()
  4. {
  5.         cout<<"Press Enter To Quit...";
  6.         cin.sync();
  7.         cin.ignore(numeric_limits<streamsize> ::max(), '\n');
  8. }

Copy & Paste


Comments


There are currently no comments for this snippet. Be the first to comment!

Add comment


You must be registered and logged on to </dream.in.code> to leave comments.





Live C++ Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month