error with hello world!!!

Hi. im using borland c++ 5.02 and im working on my first program in this language and am having difficulties. heres what i have so far.
-------------------------------------------------------------------------------
// my first program in C++

#include <iostream>
using namespace std;

int main ()
{
cout << "Hello World!";
return 0;
}

-------------------------------------------------------------------------------
The error message is [noname00.cpp(4,16):Namespace name expected]

could someone please help me! i know its a really simple fix.

It seems like your compilier isn't recgonizing the std namespace...try removing the using... line and use std::cout instead.
Borland C++ 5.x came out before the C++ standard was etched in stone.

You need to upgrade to an ISO/IEC C++ standards-compliant compiler.

Good luck!
Topic archived. No new replies allowed.