Re: gcc not seeing.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 7 Nov 2002, Thomas Dodd wrote:

>>On Thu, 07 Nov 2002 10:12:38 -0600
>>Thomas Dodd <ted@cypress.com> 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.

I'm not even remotely a C++ programmer, and even _I_ know how to
deal with this properly.

using namespace std;




-- 
Mike A. Harris		ftp://people.redhat.com/mharris
OS Systems Engineer
XFree86 maintainer
Red Hat Inc.



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux