Using namespace std

I have Borland Turbo c++ version 3.0 installed on my computer.
When i compiled foll. program:

#include <iostream>
using namespace std;

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

i got a Declaration Syntax error.
Why//
Turbo C++ 3.0 is really old, I suggest you update it or get something like VC++ Express.
Topic archived. No new replies allowed.