C++ School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
Home
Forums
Programming
Web Development
Tutorials
Snippets
Blogs
Freelance
Jobs
Lounge
Login
Join for Free!
Programming Help
C and C++
VB6
Java
VB.NET
C#
ASP.NET
PHP
ColdFusion
Perl and Python
Ruby
Databases
Other Languages
Game Programming
Mobile Development
Software Development
Computer Science
Industry News
Web Development
Web Development
HTML & CSS
JavaScript
Graphic Design
Flash & ActionScript
Blogging
SEO & Advertising
Web Servers & Hosting
Site Check
What's Here?
Members:
306,728
Replies:
840,911
Topics:
140,495
Snippets:
4,465
Tutorials:
1,165
Total Online:
2,530
Members:
128
Guests:
2,402
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!
Chat
LIVE
With a C++ Expert
Pause Window
Pauses the DOS window without using system commands
Submitted By:
ImaSexy
Actions:
Rating:
0
1
2
3
4
5
Views:
132
Language:
C++
Last Modified:
November 1, 2009
Snippet
#include <limits>
void
pause
(
)
{
cout<<
"Press Enter To Quit..."
;
cin
.
sync
(
)
;
cin
.
ignore
(
numeric_limits<streamsize> ::
max
(
)
,
'
\n
'
)
;
}
Copy & Paste
#include <limits> void pause() { cout<<"Press Enter To Quit..."; cin.sync(); cin.ignore(numeric_limits<streamsize> ::max(), '\n'); }
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.
Advertising
|
Terms of Use
|
Privacy Policy
|
About Us
|
Site Map
Forum Index:
Programming Help
|
C and C++
|
VB6
|
Java
|
VB.NET
|
C#
|
ASP.NET
|
PHP
|
ColdFusion
|
Perl and Python
|
Ruby
|
Databases
|
Other Languages
|
Game Programming
|
Mobile Development
|
Software Development
|
Computer Science
|
Industry News
|
Programming Tutorials
|
C++ Tutorials
|
Visual Basic Tutorials
|
Java Tutorials
|
VB.NET Tutorials
|
C# Tutorials
|
Linux Tutorials
|
PHP Tutorials
|
ColdFusion Tutorials
|
Windows Tutorials
|
HTML/JavaScript Tutorials
|
CSS Tutorials
|
Flash Tutorials
|
Web Promotion Tutorials
|
Graphic Design & Photoshop Tutorials
|
Software Development Tutorials
|
Database Tutorials
|
Other Language Tutorials
|
ASP.NET Tutorials
|
Game Programming Tutorials
|
WPF & Silverlight Tutorials
|
Copyright 2001-2008
MediaGroup1 LLC
, All Rights Reserved
A
MediaGroup1 LLC
Production - Version 6.0.2.1.36
Server: secure2
Search
Updated!
w00t
Over 509,000 Pages!
Advanced Forum Search
Live C++ Help!
Be Social
C++ Tutorials
Data Structures In C++ Tutorial
C++ Quick Reference Sheet (Cheat Sheet)
Making a 2D Game Engine Using OpenGL - Part3 is up
C++ Vector Tutorial
CPP with ODBC (Open Database Connectivity)
Converting and Evaluating Infix, Postfix and Prefix Expressions in C
Getting Started In Microsoft Visual Studio 2008
Object Oriented Programming (oop) Tutorial
Understanding Loops in C++
Producing Random Numbers
189 More C++ Tutorials...
Reference Sheets
C++ Snippets
Linked List Class
Convert cases of strings
Getting Current Directory
Recursive Fibonacci Sequence
Insertion Sort Example
Shortest Function to Reverse a String ( Uses Recursion )
integer to string conversion
C++ Int to String
Convert characters into a ASCII value and vice versa
Finding Square Root without using sqrt()
668 More C++ Snippets...
DIC Chatroom
Join our IRC Chat
Bye Bye Ads
Monthly Drawing
Top Contributors
Top 10 Kudos This Month
erik.price
(225)
Dogstopper
(175)
Anarion
(175)
s3thst4
(125)
Jaakuuta
(125)
macosxnerd101
(100)
ImaSexy
(100)
syfran
(75)
EdwinNameless
(75)
rishabhsharma
(50)