Sunday, August 2, 2009

What is the use of system() in C++and also what are its parameters?

you can add commands inside the the parentheses to get your app to do windows system commands such as "PAUSE" which stops the program until someone hits a key to continue. You can also use commands such as "cls" which clears the screen of all data which is useful when you dont want the screen to scroll or your user to see data that was previously on the screen.





The examples i gave would look like:





system("PAUSE"); //pauses program, waits for input


system("CLS"); //clears screen of all text





With some research i'm sure you can find more commands that will aid you.





Hope this helps!

What is the use of system() in C++and also what are its parameters?
As a programmer, you need to be able to figure things out for yourself. Here's one site that explains it: http://www.cplusplus.com/reference/clibr...





Or Google for other sites.


No comments:

Post a Comment