Thread: turboC++/Borland builder5 help!!!!

  1. #1
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Post turboC++/Borland builder5 help!!!!

    Hi I just started learning C++. The compiler I use in college is turbo C++ and at home I'm testing the free trial of Borland builder enterprise. All I use in school is #include<iostream> and main() in a very simple program that calculates the of sum a+b.
    When I open Borland builder, there's already some code on it, if I delete it, I get compile errors; If I leave it and put my little program below, it compiles but the .exe file that comes up doesn't work at all.
    This same program was ran perfectly by Turbo C++ and the .exe file worked well. Any one have any ideas on how to work with Borland builder enterprise to do the simplest programs?
    Any feedback is very well appreciated.

    Jim.
    Jim S.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    Close the file that Borland opens with and then create a new one. That new one is a fresh slate that you can code from scratch with.

    -Prelude
    My best code is written with the delete key.

  3. #3
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Re:turboC++/Borland builder5 help!!!!

    I tried that and had no luck. No matter I open a new one, it still opens it with code on it.
    Jim S.

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    what is the code that it starts with?

  5. #5
    pete77
    Guest

    Re: turboC++/Borland builder5 help!!!!

    This is the code:

    //---------------------------------------------------------------------------

    #include <vcl.h>
    #pragma hdrstop

    #include "Unit1.h"
    //---------------------------------------------------------------------------
    #pragma package(smart_init)
    #pragma resource "*.dfm"
    TForm1 *Form1;
    //---------------------------------------------------------------------------
    __fastcall TForm1::TForm1(TComponent* Owner)
    : TForm(Owner)
    {
    }
    //---------------------------------------------------------------------------

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    9
    When you click new and the "New Items" Form comes up, you need to choose "Console Wizard".

  7. #7
    Registered User
    Join Date
    Feb 2002
    Posts
    20

    Re: turboC++/Borland builder5 help!!!!

    Thanks a lot I GOT IT! I guess I'll have to play with it more so I can figure out how it works.

    Thanks Again!!!!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. TurboC returns malloc() NULL
    By Yarin in forum C++ Programming
    Replies: 5
    Last Post: 09-10-2007, 04:35 PM
  2. problem installing TURBOC in my system
    By ss12 in forum C++ Programming
    Replies: 3
    Last Post: 03-18-2005, 08:57 AM