C:\Borland\BCC55\Bin>bcc32 test.cpp
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
test.cpp:
Error E2209 test.cpp 1: Unable to open include file 'iostream'
Error E2282 test.cpp 3: Namespace name expected
Error E2451 test.cpp 7: Undefined symbol 'cout' in function main()
Error E2451 test.cpp 8: Undefined symbol 'cin' in function main()
*** 4 errors in Compile ***
Someone guide me in the right direction
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Okay, my sound like a dumb question.. but where can I download the C/C++ libraries? I thought it was going to be like magic. COMPILE AND APPEAR!
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
You specify the "int" type but don't return an integer
I've not used Borland, I've only used GNU C++ but iostream.h should be bakward compatible where just <iostream> could give errors. The basic libraries should be there and iostream is pretty basic
I'm also just learning C++ on occassions where my mind needs something different than PHP in order to not turn to mush
was cin.get() your way of pausing the system? that's normally not even needed when you compile:-D later on when you run an exe file yes, but not when compiling. also, i'd recommend dev-c++, it works like a charm almost every time:) and as he said ALWAYS end int main with return 0; that should always be at the end of your int main function.
d11wtq wrote:You specify the "int" type but don't return an integer
but he returns
return 0;
system("pause") will break because it calls to DOS command "Pause" which is not available on *NIX
I have always said that do not use/rely on native system calls if the program has to be portable since it will break on other systems/OS.