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");
Printable View
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.
OS? What`s that?Quote:
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.
Hey brain, thats chinese sign for dragon right?
Operating System....Quote:
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.
Yep.. chinese symbol for dragon.. i'm thinkin' it would be a cool tatoo or something :cool:
if your on windows go to run, type cmd and then "help".Quote:
Originally Posted by darealnash
this will list many of the commands available to you. If your on linux consult your man pages.
;)