-
newbie need some help
hi
i have got the free borland compiler and done what the tutorial said to set it up but when i copy and paste the code to test it meaning:-
Code:
#include <iostream>
int main()
{
std::cout<< "I work!" << std::endl;
}
i save it and run it has it say on the tutorial but it come up saying
Borland C++ 5.5.1 for win32 Copyright (c) 1993, 2003 Borland
test.cpp:
Error E2209 test.cpp 1: Unable to open include file 'iostream'
Error E2090 test.cpp 5: Qulifier 'std' is not a class or namespace name
tion main()
Error E2379 test.cpp 5: Statement missing ; in function main()
*** 3 errors in compile ****
whats happen here please help
thanks paulley
-
-
i reccomend using Dev-C++ over Borland for beginning programming, iots free and available at www.bloodshed.net but anyways if that did run it would run and close instantly try this when you fix your prob:
Code:
#include <iostream>
using namespace std;
// the above makes it so you dont have to do std:: befor cout cin endl etc..
int Main()
{
cout << "I Work" << endl;
cin.get(); // waits for the user to press enter before continuing
return 0; // exit the program, because Main is a int it must return a integer, by returnng
// 0 it ends the function, in essance 0 on success anything else on fail
}
i hope it helps :D
The Noob
PS: this should be in the C++ Programming Forum