Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Syntax for System Calls!

Status
Not open for further replies.

sera

Technical User
Jun 29, 2000
360
0
0
US
I am trying to remember the syntax for system calls using c++. I was pretty sure that the syntax was
system("some command");
but apparently this is not correct!
Also what include file do you use? Is it <system>?
Thanks!
Sera
 
The syntax is just like you write, e.g.

system(&quot;cls&quot;);

to clear a console screen. You can include <stdlib.h> or <process.h>. :) Hope that this helped! ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top