Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Very basic borland c++ builder 6 question <----newbie

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I just bought borland c++ builder 6 and I didn't realize how complicated it is. All I want to be able to do is enter simple programs such as the "hello world" program and run it. I tried starting a new .cpp file and entering the code in there but after compiling nothing happened. It's as if there was just no code there. I tried running the hello.exe file but still got no results. What am i doing wrong?
 
For simple program like "Hello,World" skip the RAD and use the command line. Create your source code with your favorite editor, compile and link it with bcc32, and then run the executable. At least this works for all previous versions of BCB. My Hello.cpp file looked like:
Code:
#include <iostreams.h>

int main()
{
        cout << &quot;Hello, World&quot; << endl;
        return 0;
}

I compiled it with bcc32 hello which compiled and linked it. I could then run Hello.exe at the command line. I haven't tried this with BCB6 but it works with BCB5. James P. Cottingham

I am the Unknown lead by the Unknowing.
I have done so much with so little
for so long that I am now qualified
to do anything with nothing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top