| View previous topic :: View next topic |
| Author |
Message |
alawna Guest
|
Posted: Fri Jun 10, 2005 12:27 am Post subject: stdlib and stdio |
|
|
Hi. I am studying C witth codeblocks but also trying to run same console
programs with cbuilder.
In codeblocks I needed these two headers (below) to run the program but
cbuilder ran it without them
#include <stdio.h>
#include <stdlib.h>
int main()
{
int i;
puts ("Trying to execute command DIR");
i = system ("dir");
if (i==-1)
puts ("Error executing DIR");
else
puts ("Command successfully executed");
getchar();
return 0;
}
why is that? does it include these files automatically?
thanks
|
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Fri Jun 10, 2005 12:37 am Post subject: Re: stdlib and stdio |
|
|
What version of the compiler and how did you create the project?
.. Ed
| Quote: | alawna wrote in message
news:42a8de65 (AT) newsgroups (DOT) borland.com...
Hi. I am studying C witth codeblocks but also trying to run same console
programs with cbuilder. In codeblocks I needed these two headers (below)
to run the program but cbuilder ran it without them
#include
#include
int main()
{
int i;
puts ("Trying to execute command DIR");
i = system ("dir");
if (i==-1)
puts ("Error executing DIR");
else
puts ("Command successfully executed");
getchar();
return 0;
}
why is that? does it include these files automatically?
thanks
|
|
|
| Back to top |
|
 |
Jim Slade Guest
|
Posted: Sat Jun 11, 2005 2:54 pm Post subject: Re: stdlib and stdio |
|
|
"alawna" <o.alawna (AT) gmail (DOT) com> wrote in news:42a8de65
@newsgroups.borland.com:
| Quote: | Hi. I am studying C witth codeblocks but also trying to run same console
programs with cbuilder.
In codeblocks I needed these two headers (below) to run the program but
cbuilder ran it without them
#include
#include
|
Probably "pre-compiled" headers are enabled.
|
|
| Back to top |
|
 |
|