Thread: Borland Problem.

  1. #1
    Programmer
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    33

    Borland Problem.

    Well I have no idea on how to run code that use's iostream and the commands like "cout <<" "cin <<" since I have no idea if borland even supports it.

    I tried starting just a normal cpp file but it wouldn't allow me to compile. I tried using a batch file but I guess that wouldn't work either. Then I just tried the basic Form project which I had a good idea it wouldn't work either. Anyone know what the problem might be?
    (Expert Visual Basic Programmer)
    (Newbie C/C++ Programmer)

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    I have several Borland C++ compilers. Which specific one are you using? If there's a basic Form project it certainly sounds like it'll support C++.

  3. #3
    Programmer
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    33
    I have Borland C++ Builder 6.

    EDIT: Heres what I was doing, I load up borland. Click New then Other then CPP File.

    I type this in:

    Code:
    #include <iostream>
    
    using namespace std;
    
    int main()
    {
    int a, b, c;
    cout << "Hello!\nPlease Enter Any Whole Number: ";
    cin >> a;
    cout << "Alright!  You entered ";
    cout << a;
    cout << "\nAlright! Now Enter Another Whole Number: ";
    cin >> b;
    cout << "Alright!  You entered ";
    cout << b;
    cout << "\nNow where going to add ";
    cout << a;
    cout << " and ";
    cout << b;
    cout << "! = ";
    c = a + b;
    cout << c;
    cout << "\n";
    cout << "\nPlease Press Enter To Exit!";
    cin.get();
    cin.get();
    return 0;
    }
    Last edited by dimirpaw; 11-26-2005 at 04:07 PM.
    (Expert Visual Basic Programmer)
    (Newbie C/C++ Programmer)

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    It doesn't compile?
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    Programmer
    Join Date
    Nov 2005
    Location
    Canada
    Posts
    33
    It wont run, what happens is it will run for half a second and quit.
    (Expert Visual Basic Programmer)
    (Newbie C/C++ Programmer)

Popular pages Recent additions subscribe to a feed