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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BORLAND C++ 5.5 COMPILER

Status
Not open for further replies.

jjzabala

Programmer
Mar 7, 2003
4
PH
I'm new to C++ and have downloaded BORLAND's compiler. Could someone give me step by step instructions on how to compile using it. I already tried but i fing it difficult coz i'm not familiar with it. Thanks!
 
First make sure your Borland bin and lib directories on on your path. Check your OS to see how to do it. On Win NT/2000 you can right click "My Computer", select properties, click on the Advanced tab, and then select "Enviroment variables." I think it tells you this in the compiler's read me file.

After that, try this. Open a text editor and type the following:
Code:
#include <iostream.h>

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

Save this file as Hi.cpp.

Go to the command prompt, CD to the direcotory where you saved Hi.cpp and type BCC32 Hi.

You should have had Hi.exe created. Type Hi and there you have it. James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Major mistake in the above code.

The string &quot;Hi, World&quot; should read &quot;Hello, World&quot;.

Even the experts can make make mistakes. ;-)

tomcruz.net
 
Why follow the crowd???? LOL James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top