473,378 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Unable to find system.h

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
3 9752
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
"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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adam B | last post by:
I am just learning C#. Several of the examples make reference to System.Core. Does anyone know where I can find this assembly? I have the full version of VS .NET 2003 ent architect installed.
2
by: James Coburn's Grey Helmet Hair | last post by:
When I try to compile my GTK# app, the compiler says: jbailo@linux:~/mono> mcs buttons.cs -r gtk-sharp.dll -r glib-sharp.dll -r -o buttons.exe error CS2001: Source file 'buttons.exe' could not...
1
by: Paul Steele | last post by:
I need to write some Active Directory aware programs but my programs can't find the System.DirectoryServices class needed for doing it. I am runing Visual Studio .NET 2003 and for good measure...
2
by: web1110 | last post by:
Hi y'all, I'm playing with C# again, trying to implement a remoted calculator exercise. If I include: using System.Runtime.Remoting.Channels.Http; I get the error:
5
by: Dica | last post by:
i need to create a clock object which is apparently in the clock class under System.Windows.Media.Animation. i've tried adding a reference to this assembly, but the closest thing i can find is...
2
by: George | last post by:
Hello everyone, I have used Visual Studio 2005 to create a C# .Net Compact Framework 1.0 application on Pocket Pc 2003 device. But when building the application, there are some errors dealing...
1
by: =?Utf-8?B?ZGF2aWQ=?= | last post by:
Hi, everybody here. I am implementing data encryption/decryption, and try to use System.Security.Cryptography.TripleDESCryptoServiceProvider. But I can not find it in MS Visual Studio when I...
4
by: Andrus | last post by:
Checking Client-only framework subset in VS2008 SP1 project properties causes in my application compile error The type 'System.Data.Linq.ITable' is defined in an assembly that is not...
1
by: John HL | last post by:
Hello I have been programming vba for some time and am now starting VB.NET. I need to connect to an existing access db file (access 2003). I downloaded VS2010 and found an example on the net. ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.