BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stdlib and stdio

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++)
View previous topic :: View next topic  
Author Message
alawna
Guest





PostPosted: Fri Jun 10, 2005 12:27 am    Post subject: stdlib and stdio Reply with 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 <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





PostPosted: Fri Jun 10, 2005 12:37 am    Post subject: Re: stdlib and stdio Reply with quote



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





PostPosted: Sat Jun 11, 2005 2:54 pm    Post subject: Re: stdlib and stdio Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language C++) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.