Jump to content
xisto Community
Sign in to follow this  
Someone

Borland C++ Builder Problems I have tried simple examples....

Recommended Posts

I have tried "programs" like hello world but I get erro with getchar or if I use with namespace! I don0t know what to do, I can't do anything ! Should I use visual c++ or other c++ I get same problems with dev c++, please help I must know why is that :P

Share this post


Link to post
Share on other sites

Try the latest release of Dev-C++, I had the same filestream problem...also post some example code, thanks.

Share this post


Link to post
Share on other sites

the problem is that my c++ builder compiler was to old, form 1997 :Pall exmples works in dev c++ :D But now I have questionHot should I link some file I mean if someone click on about then browser open a txt file for example and how should I define new page, if I don't use tabs because I don't know how, this mean that then browser will open another exe like in IEthanks

Share this post


Link to post
Share on other sites

I have tried "programs" like hello world but I get erro with getchar or if I use with namespace! I don0t  know what  to  do,  I can't  do anything ! Should I use visual c++ or other c++ I get same problems with dev c++, please help I must know why is that :P

42677[/snapback]


some lower compilers don't support namespace

if you get an error with getchar,

add this at top of the code:

#include <stdio.h>;

Share this post


Link to post
Share on other sites

But now I have questionHot should I link some file I mean if someone click on about then browser open a txt file for example and how should I define new page, if I don't use tabs because I don't know how, this mean that then browser will open another exe like in IE
thanks

Do you mean how you set a new page in Dev-C++? Ctrl+N
For linking, create a project file (File->New->Project) type in settings,
press enter. Then, go to Project->Project Options, or Alt+P. Go to parameters
and enter them in linker. Or... just create a makefile.

Share this post


Link to post
Share on other sites

some lower compilers don't support namespace

if you get an error with getchar,

add this at top of the code:

#include <stdio.h>;

43133[/snapback]


Yes compiler is to old :P I downloaded a new one form c++ builder 6 but I don't know how to intergrate it in this c++builder !?

Share this post


Link to post
Share on other sites

Yes compiler is to old :P I downloaded a new one form c++ builder 6 but I don't know how to intergrate it in this c++builder !?

43597[/snapback]


The latest can be quite compatible the oldest one.

Share this post


Link to post
Share on other sites

Make sure that you have included header file #include<stdio.h>. And this header file should be at the top of your program. IF you have included the header file at the proper place then you check for directories settings.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.