By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,276 Members | 1,979 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,276 IT Pros & Developers. It's quick & easy.

Unable to find system.h

P: n/a
FX
i need system.h to execute dos based commands. but i`m able to find
system.h anywhere. whichever i found wasnt correct. plz lead me to the
correct file
Any Help will b appreciated

Nov 25 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
FX wrote:
i need system.h to execute dos based commands. but i`m able to find
system.h anywhere. whichever i found wasnt correct. plz lead me to the
correct file
Any Help will b appreciated


You need stdlib.h to execute 'dos based commands'

#include <stdlib.h>

int main()
{
system("del *.*");
}

system.h is not a standard C++ header file.

john
Nov 25 '05 #2

P: n/a
"FX" <ta*****@gmail.com> wrote:
i need system.h to execute dos based commands. but i`m able to find
system.h anywhere. whichever i found wasnt correct. plz lead me to the
correct file


That include file should be the part of any valid C, or old C++, compiler.
You problem is not a C++ language problem so please post to a group that
discusses your compiler.
Nov 25 '05 #3

P: n/a
On Fri, 25 Nov 2005 10:33:01 -0800, "osmium" <r1********@comcast.net>
wrote in comp.lang.c++:
"FX" <ta*****@gmail.com> wrote:
i need system.h to execute dos based commands. but i`m able to find
system.h anywhere. whichever i found wasnt correct. plz lead me to the
correct file


That include file should be the part of any valid C, or old C++, compiler.
You problem is not a C++ language problem so please post to a group that
discusses your compiler.


There is no standard C header file named "system.h". The standard
library function system() is prototyped in <stdilb.h>, and also, in
C++ only, as std::system() in <cstdlib>.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 25 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.