|
From: Ioannis V. <no...@ya...> - 2000-11-08 12:51:57
|
If you want your programs to be portable, you should use std::cout<<"Hello
World!\n";
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Chris Bunney
Sent: Tuesday, November 07, 2000 8:45 PM
To: dev-c++
Subject: [Dev-C++] namespace std?
Hi everyone,
Just a quick question that has been bugging me!
I if compile the program:
#include <iostream>
int main()
{
cout << "Hello World!\n";
return 0;
}
It works perfectly! But surely it should fail because I have used the new
style header files that are placed in namespace std. Being as I have not
added 'using namespace std;' to my program - why does it work?! I though you
had to qualify each function with std::
Im sure there is a good reason for this - Im just interested!
Chris
|