|
From: Per W. <pw...@ia...> - 2005-03-04 12:17:59
|
There are no include file called "cstdio.h" In older c++, the file was called "stdlib.h" and was actually part of the C standard. In the current C++ standard, the file is called "cstdlib", i.e. no ".h" extension. If you look at the answer you got before, it shows <cstdlib>, i.e. your like should look like: #include <cstdlib> /Per W On Fri, 4 Mar 2005, daniel wrote: > Thnaks for the help. I tried using the execute statement but it cam up with > the following error: > > "/Programming/c_programming/c/practical_c/file_execute.c > D:\Programming\c_programming\c\practical_c\D cstdlib.h: No such file or > directory." > > It seems as if its looking for the header file in the same directory as the > source file. Why does it only do this with <cstdlib.h> and not <stdlib.h> or > indeed <stdio.h> > ----- Original Message ----- > From: <Mat...@Ve...> > To: <mag...@nt...>; <Dev...@li...> > Sent: Wednesday, March 02, 2005 11:07 PM > Subject: RE: [Dev-C++] opening files in c > > > > OK, > > > > Your terms are mixed up. In C/C++, opening a file means getting it ready > to > > be read and/or written from/into by your code. > > > > Open does _not_ mean to execute a file. For executing a file, you need > > system() which is in <cstdlib>. > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...]On Behalf Of daniel > > Sent: Wednesday, March 02, 2005 2:59 PM > > To: Dev...@li... > > Subject: [Dev-C++] opening files in c > > > > > > Hello, > > I am writing a program which asks the user whether they want to > > execute (open) a batch file or not. > > I tried using the fopen function but it seems to only enable you to write > to > > a file or read from a file (e.g. calculate the number of words in a given > > file). > > What I want to do is open an external file. Is there a command for this? > > ___________________________________________________________________ > > The information contained in this message and any attachment may be > > proprietary, confidential, and privileged or subject to the work > > product doctrine and thus protected from disclosure. If the reader > > of this message is not the intended recipient, or an employee or > > agent responsible for delivering this message to the intended > > recipient, you are hereby notified that any dissemination, > > distribution or copying of this communication is strictly prohibited. > > If you have received this communication in error, please notify me > > immediately by replying to this message and deleting it and all > > copies and backups thereof. Thank you. > > > > > > > > ------------------------------------------------------- > > SF email is sponsored by - The IT Product Guide > > Read honest & candid reviews on hundreds of IT Products from real users. > > Discover which products truly live up to the hype. Start reading now. > > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |