View Feed
group-icon
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12933 Members
Join this group to post and comment.
accoolaryan
accoolaryan • Feb 1, 2010

problem in a c program

hi
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?
😕
dipen30
dipen30 • Feb 1, 2010
there is a header file in c "dos.h" include that file.
gaurav.bhorkar
gaurav.bhorkar • Feb 1, 2010
accoolaryan
hi
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 in your program.

Syntax:

system ("command");

For eg. to clear the screen you can use - system ("cls");
Manish Goyal
Manish Goyal • Feb 1, 2010
addition to previous post
Don't forget to use
#include

Share this content on your social channels -