system( "PAUSE" );!!!!

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Apr 2007
Posts: 45
Reputation: 7arouf is an unknown quantity at this point 
Solved Threads: 0
7arouf 7arouf is offline Offline
Light Poster

system( "PAUSE" );!!!!

 
0
  #1
Apr 4th, 2007
hi

can anyone tell me what do we mean by:

system( "PAUSE" );

and

system( "CLS" );


in C++



thanks
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 2,031
Reputation: Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of 
Solved Threads: 177
Aia's Avatar
Aia Aia is offline Offline
Postaholic

Re: system( "PAUSE" );!!!!

 
0
  #2
Apr 4th, 2007
Originally Posted by 7arouf View Post
hi

can anyone tell me what do we mean by:

system( "PAUSE" );

and

system( "CLS" );


in C++



thanks
system("PAUSE"); the program waits for you to enter a key
system("CLS"); clears the console or command line terminal

both of makes your program not portable since is operating system
depended
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 3,114
Reputation: WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of WaltP has much to be proud of 
Solved Threads: 281
Moderator
WaltP's Avatar
WaltP WaltP is offline Offline
Posting Sensei

Re: system( "PAUSE" );!!!!

 
0
  #3
Apr 4th, 2007
See this about system("pause");
system("cls"); is conceptually similar.
The 3 Laws of the Procrastination Society:
1) Never do today that which can be put off until tomorrow
2) Tomorrow never comes
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 45
Reputation: 7arouf is an unknown quantity at this point 
Solved Threads: 0
7arouf 7arouf is offline Offline
Light Poster

Re: system( "PAUSE" );!!!!

 
0
  #4
Apr 5th, 2007
thank u guys!!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 254
Reputation: jan1024188 is an unknown quantity at this point 
Solved Threads: 2
jan1024188's Avatar
jan1024188 jan1024188 is offline Offline
Posting Whiz in Training

Re: system( "PAUSE" );!!!!

 
0
  #5
Apr 5th, 2007
use
  1. getchar();
  2. or
  3. cin.get();
instead of system("pause");
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 10
Reputation: Lance Wassing is an unknown quantity at this point 
Solved Threads: 0
Lance Wassing Lance Wassing is offline Offline
Newbie Poster

Re: system( "PAUSE" );!!!!

 
0
  #6
Apr 5th, 2007
Well, the System("pause"); actually a function to the main windows shell, which calls pause.exe, and thereby pauses your program. And just to let you know, the System("PAUSE") method is a bad way of pause your applications...

A good alternative is at:
http://cpp.codenewbie.com/articles/c...SE-Page_1.html


As for System("CLS") function, it clcears your console applications screen. Basically erasing any user or application genereated output on the screen.

Please let me know if this helps you.

Thank,
Lance Wassing
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC