I have a question, i aready found out about, but are there other commands using 'system' and if yes, please explain their use.Code:system ("PAUSE");
I have a question, i aready found out about, but are there other commands using 'system' and if yes, please explain their use.Code:system ("PAUSE");
This is completely dependent on the OS you have.
"Owners of dogs will have noticed that, if you provide them with food and water and shelter and affection, they will think you are god. Whereas owners of cats are compelled to realize that, if you provide them with food and water and shelter and affection, they draw the conclusion that they are gods."
-Christopher Hitchens
OS? What`s that?This is completely dependent on the OS you have.
You can use ' system( )' to make any call to your operating system.
system("pause") and system("cls") seem to be the most popular uses... although, keep in mind that such casual use of the system( ) function is highly discouraged.
check the FAQ for better alternatives... under "How do I clear the screen.. " and "How do I make my program wait for a keypress"
also, remember that system( ) is operating system independant.
A forum search will reveal a multitude of threads on this subject.
Last edited by The Brain; 08-25-2004 at 06:37 PM.
- "Problem Solving C++, The Object of Programming" -Walter Savitch
- "Data Structures and Other Objects using C++" -Walter Savitch
- "Assembly Language for Intel-Based Computers" -Kip Irvine
- "Programming Windows, 5th edition" -Charles Petzold
- "Visual C++ MFC Programming by Example" -John E. Swanke
- "Network Programming Windows" -Jones/Ohlund
- "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
- "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel
Hey brain, thats chinese sign for dragon right?
Operating System....Originally Posted by darealnash
system() is used to envoke another executable from within your program or issue a system command to your OS... listen to the Brain above, he comes bearing valuable content
Basically, whatever you feel like typing on the command line
c:\> dir
c:\> type file.txt
Of course, if your command line is Unix, you have a much more powerful command line to play with.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Yep.. chinese symbol for dragon.. i'm thinkin' it would be a cool tatoo or something
- "Problem Solving C++, The Object of Programming" -Walter Savitch
- "Data Structures and Other Objects using C++" -Walter Savitch
- "Assembly Language for Intel-Based Computers" -Kip Irvine
- "Programming Windows, 5th edition" -Charles Petzold
- "Visual C++ MFC Programming by Example" -John E. Swanke
- "Network Programming Windows" -Jones/Ohlund
- "Sams Teach Yourself Game Programming in 24 Hours" -Michael Morrison
- "Mathmatics for 3D Game Programming & Computer Graphics" -Eric Lengyel
if your on windows go to run, type cmd and then "help".Originally Posted by darealnash
this will list many of the commands available to you. If your on linux consult your man pages.
Warning: Opinions subject to change without notice
The C Library Reference Guide
Understand the fundamentals
Then have some more fun