ghell
10-26-2004, 12:25 PM
everywhere i look it tells me to use
#include <isostream>
using namespace std;
int main()
{
cout << "Hello World\n";
return 0;
}
but when i compile this with boarland c++ compiler, mingw or devc++ they all throwthe following errors (albeit worded slightly differently each time)
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello.cpp:
Error E2209 hello.cpp 1: Unable to open include file 'isostream'
Error E2282 hello.cpp 2: Namespace name expected
Error E2451 hello.cpp 6: Undefined symbol 'cout' in function main()
*** 3 errors in Compile ***
this is the simplest script u can do so how am i getting 3 errors (and how do i fix them)
#include <isostream>
using namespace std;
int main()
{
cout << "Hello World\n";
return 0;
}
but when i compile this with boarland c++ compiler, mingw or devc++ they all throwthe following errors (albeit worded slightly differently each time)
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
hello.cpp:
Error E2209 hello.cpp 1: Unable to open include file 'isostream'
Error E2282 hello.cpp 2: Namespace name expected
Error E2451 hello.cpp 6: Undefined symbol 'cout' in function main()
*** 3 errors in Compile ***
this is the simplest script u can do so how am i getting 3 errors (and how do i fix them)