GIDForums  

Go Back   GIDForums > Computer Programming Forums > C Programming Language
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 20-Sep-2005, 00:40
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all
Post

Re: Things to Avoid in C/C++ -- system("pause"), Part 4


I just posted a GID Community blog entitled: Things to Avoid in C/C++ -- system("pause"), Part 4.

Quote:
system("pause")

I've never understood why system("PAUSE") is so popular. Sure it will pause a program before it exits. This pause is very useful when your IDE won't wait as you test a program and as soon as the program finished the window closes taking all your data with it. read more...

Please let me know what you think.

This is an auto-generated message posted by GIDNetwork™ on behalf of the author.
__________________

Age is unimportant -- except in cheese
  #2  
Old 26-Apr-2006, 06:53
hollystyles hollystyles is offline
New Member
 
Join Date: Apr 2006
Posts: 1
hollystyles is on a distinguished road

Re: Things to Avoid in C/C++ -- system("pause"), Part 4


I read your article and it makes sense. But it also raises another question for me. Why does it exist?
  #3  
Old 26-Apr-2006, 15:41
WaltP's Avatar
WaltP WaltP is offline
Outstanding Member
 
Join Date: Feb 2004
Location: Midwest US
Posts: 3,243
WaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to allWaltP is a name known to all

Re: Things to Avoid in C/C++ -- system("pause"), Part 4


Because the system() function can be used to execute any operating system command, like dir, ls, rename, etc. Even shutdown given the proper command syntax.

The pause command is used in batch files to pause execution of the file.

And like many things in life, you are allowed to combine things that should not be combined, like peanut butter and pickles. Both are useful, but together they suck.
__________________

Age is unimportant -- except in cheese
 
 

Recent GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Things to Avoid in C/C++ -- gets() , Part 1 WaltP C Programming Language 5 21-Jun-2007 12:13
Re: Things to Avoid in C/C++ -- feof(), Part 3 WaltP C Programming Language 0 19-Sep-2005 20:00
Re: Things to Avoid in C/C++ -- fflush(stdin), Part 2 WaltP C Programming Language 0 17-Sep-2005 20:39
Web Site Optimization - the basic things dimos31 Search Engine Optimization Forum 3 19-Jun-2005 12:00
[Tutorial] Pointers in C (Part II) Stack Overflow C Programming Language 0 27-Apr-2005 17:36

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:56.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.