Jesse Keating wrote:

On Thu, 07 Nov 2002 10:12:38 -0600
Thomas Dodd <[EMAIL PROTECTED]> wrote:

# Is that actuall in the standard? Is the default namespace no longer
# defined?
# # Time to start adding a namespace decleration to all my code..

I think you can get away with it if you add this to your headers:

using namespace std;

That was my plan :)

Although, I could be wrong.

I hope it doesn't take more.

I don't understand why the ISO standard doesn't use std as the default namespace. Why call it std if it's not the default standard namespace? Imagine if the C spec changes standard in, out, and error (stdout, sdtin, and stderr) to be required. So now this code:

printf("Type your name:");
scanf("%s",name);
printf("Hello %s!\n",name);

became

fprintf(stdout,...);
fscanf(stdin,...);
fprintf(sdtout...);

That's the kind of change the C++ standard is making.

-Thomas






Reply via email to