Hello all, I'm new to C++ and using the Borland C++ compiler (new version). Where can I find a good programming site that uses code followed by the Borland Compiler? Thanks all!
Hello all, I'm new to C++ and using the Borland C++ compiler (new version). Where can I find a good programming site that uses code followed by the Borland Compiler? Thanks all!
Do not make direct eye contact with me.
I'm not sure what you mean... any C++ code should be standard to any compiler. It shouldn't matter what code you use if it is written in ANSI standards.
hmm......must have been using C then....huh....anyway, what are some good C sites? Thanks again!
Do not make direct eye contact with me.
well, I tried to compile this as test.c:
and I get these errors:Code:#include <iostream.h> int main() { cout<<"HEY, you, I'm alive! Oh, and Hello World!"; return 0; }
BTW, the code is from this boards parent site, cprogramming.com.Code:Error E2209 test.c 1: Unable to open include file "iostream.h" Error E2451 test.c 7: Undefined symbol 'cout' in function main
Do not make direct eye contact with me.
it shouldn't matter, but you should save your c++ files as "whatever.cpp"
/edit... whoops... that was wrong.
Last edited by ober; 02-28-2003 at 11:16 AM.
other than that, your code worked fine for me.... I'm using MSVC++ 6
I'll try using that.....where can I get it?
Do not make direct eye contact with me.
The borland compiler will work once you get everything set-up properly and learn to use it. I know this can get frustrating.
I've used several different compilers, and they have NEVER worked as expected the first time. (I think I tried-out the free Borland compiler once.)
Usually, my problems have related to paths and directories... Either the compiler can't find the include files (this seems to be your case), or it couldn't find the cpp file, or I couldn't find the exe file.
MSVC++ is Microsoft Visual C++. You have to buy it. The least expensive version is about $100. The microsoft compiler is probably the most popular non-free compiler, and Borland is probably the most popular free compiler. The nice thing about MSVC+ is that it runs in a windows IDE (Integrated Development Enviroment)... That is, it's not a "command line" compiler However, there are lots of configuration options. So, it's not easy for the first-time user to get "Hello World" working with MSVC++ either!I'll try using that.....where can I get it?
Your code is C++. There's no cout in Cmust have been using C then
What version of the Borland Compiler are you using? Borland has a free compiler and a not for free IDE (Borland C++ Builder) that has the free compiler bundled in it and is the equivalent of MS VC++.
Your problem may be that the compiler you are using doesn't recognize .h for standard files. That is, it may follow the most up to date standards for C++. You could try leaving out the .h from this line:
#include <iostream.h>
If that works, you may also need to indicate a namespace. Although not recommended for more advanced programs, when getting started, the line:
using namespace std;
after the list if #includes should work for now.
If you want a free IDE that has a fair amount of approval look up Bloodshed Dev C++. I've had some problems with it, but overall it works pretty darn good for a freebie IDE.