Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Borland C++ Builder Problems


7 replies to this topic

#1 Someone

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 158 posts
  • Gender:Male

Posted 23 January 2005 - 05:46 PM

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

#2 osknockout

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 399 posts
  • Location:Elysium
  • Interests:quantum mechanics, war, history, epidemiology, virology,mathematics, programming, D&amp;D/NetHack<br />...old skool :)

Posted 23 January 2005 - 06:25 PM

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

#3 Someone

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 158 posts
  • Gender:Male

Posted 24 January 2005 - 09:31 PM

the problem is that my c++ builder compiler was to old, form 1997 :P
all exmples works in dev c++ :D
But now I have question
Hot 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

#4 LuciferStar

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 114 posts
  • Location:Suzhou Jiangsu China

Posted 25 January 2005 - 04:12 AM

Someone, on Jan 23 2005, 05:46 PM, said:

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

View Post


some lower compilers don't support namespace
if you get an error with getchar,
add this at top of the code:
#include <stdio.h>;

#5 osknockout

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 399 posts
  • Location:Elysium
  • Interests:quantum mechanics, war, history, epidemiology, virology,mathematics, programming, D&amp;D/NetHack<br />...old skool :)

Posted 25 January 2005 - 10:55 PM

Quote

But now I have question
Hot 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.

#6 Someone

    Premium Member

  • Kontributors
  • PipPipPipPipPipPipPipPip
  • 158 posts
  • Gender:Male

Posted 26 January 2005 - 05:54 PM

LuciferStar, on Jan 25 2005, 05:12 AM, said:

some lower compilers don't support namespace
if you get an error with getchar,
add this at top of the code:
#include <stdio.h>;

View Post


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 !?

#7 LuciferStar

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 114 posts
  • Location:Suzhou Jiangsu China

Posted 27 January 2005 - 08:00 AM

Someone, on Jan 26 2005, 05:54 PM, said:

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 !?

View Post


The latest can be quite compatible the oldest one.

#8 Nik

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 57 posts
  • Gender:Male
  • myCENT:0.19

Posted 17 August 2010 - 12:20 PM

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.




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users