Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@dipen30-hGOPpa • Feb 1, 2010
there is a header file in c "dos.h" include that file.
-
@gauravbhorkar-Pf9kZD • Feb 1, 2010
accoolaryanhi
i want to include a dos command in c program .
how can i include it so when i run my program so it should run that command?
πIf you are using Visual C++ or Dev C++ to compile your programs, then you can use the system () function. Make sure you #include <stdlib.h> in your program.
Syntax:
system ("command"); For eg. to clear the screen you can use - system ("cls"); -
@manish-r2Hoep • Feb 1, 2010
addition to previous post
Don't forget to use
#include<stdlib.h>