Ok I downloaded the borland compiler and now I open DOS Prompt and I type
cd c:\borland\bcc35\bin
then I type in
bcc32 mycode.cpp
When I do this I get it to compile but I get 2 errors...which I dont understand because its the code straight from this site.
Code:
#include <iostream.h>
int main()
{
cout<<"HEY, you, I'm alive! Oh, and Hello World!";
return 0;
}
Why doesn't this compile?
Also, how do I make a .cpp file? I tried saving it in notepad and it didn't work? I had to edit one of the examples and change the code to the one i posted above.
Is there something that I am missing that is making this not compile? All I want to do is learn how to do basic stuff?
And also...when it does compile where does it go? Do I have to specify a path, or does it go into the Bin file in the Borland directory?
Thanks!