Techy Geek
Daemon Poster
- Messages
- 1,320
I have been tryin to learn C++, I got a tutorial and tried this code
Code:
// my first program in C++
#include <iostream.h>
int main <>
{
cout << "hello world!"; >>
return 0;
}
NB that was written by my IT teacher (so was the tutorial) and i am pretty sure that its right
anyway, I am trying to compile it and it comes up with this message:
error E2209 hiworld.cpp 2: Unable to open include file "iostream.h"
Error E2141 hiworld.cpp 3: Declaration syntax error
*** 2 errors in Compile ***
what should I do to get the darn thing to compile, is the code wrong (I'd dearly love the tell the IT teacher he got it wrong, that would be great!!!) or is it something else
Another note, I have to put the BCC32.exe file into the folder from which i am compiling, otherwise it doesnt work but I am completely stuck, please help
Code:
// my first program in C++
#include <iostream.h>
int main <>
{
cout << "hello world!"; >>
return 0;
}
NB that was written by my IT teacher (so was the tutorial) and i am pretty sure that its right
anyway, I am trying to compile it and it comes up with this message:
error E2209 hiworld.cpp 2: Unable to open include file "iostream.h"
Error E2141 hiworld.cpp 3: Declaration syntax error
*** 2 errors in Compile ***
what should I do to get the darn thing to compile, is the code wrong (I'd dearly love the tell the IT teacher he got it wrong, that would be great!!!) or is it something else
Another note, I have to put the BCC32.exe file into the folder from which i am compiling, otherwise it doesnt work but I am completely stuck, please help