Re: gcc not seeing.

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

 





Mike A. Harris wrote:

>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;
>>>      
>>>
>I'm not even remotely a C++ programmer, and even _I_ know how to
>deal with this properly.
>
>using namespace std;
>
>  
>
Already mentioned,  twice. That's waht I ment in "Time to start adding a 
namespace decleration to all my code"
Since my previous code didn't have, or need one.

My point was more in what followed:

>>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




-- 
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