Re: string class and vc++.wank :)
- From: adebaene@xxxxxxxxxxxxxxxx
- Date: 6 Dec 2005 09:03:08 -0800
John Swan a écrit :
> Thanks.
>
> Have I done something silly and not included a namespace or something?????
All standard library objects (those defined in the headers without a
..h) are in the namespace "std". Other posters have provided more
backgournd on namespaces and how to use them...
>
> In the examples that are provided in the MSDN, you do not need to that.
Unfortunately (or not, depending on your point of view), a lot of
samples are not compilable "as-is". Rather, they are made short and
concentrate on the problem/point they intend to demonstrate.
>
> I must admit - I have not done any form of coding in a few years but feel
> that managed.net is, well - non standard. Would you agree?
Your code is standard compliant, non-managed C++ and has nothing to do
with .NET. It would be the same thing with GCC or any other decently
conforming compiler.
If you've got a different behavior on another system, then your
compiler on that system is not conformant.
Concerning "standardeze level" of managed C++ or C++/CLI, it may be a
debate but the point is moot in your case, since you're writing native,
standard C++.
Arnaud
MVP - VC
.
- Follow-Ups:
- Re: string class and vc++.wank :)
- From: John Swan
- Re: string class and vc++.wank :)
- References:
- string class and vc++.wank :)
- From: John Swan
- Re: string class and vc++.wank :)
- From: David Wilkinson
- Re: string class and vc++.wank :)
- From: John Swan
- string class and vc++.wank :)
- Prev by Date: Re: string class and vc++.wank :)
- Next by Date: Re: I think this is a bug...
- Previous by thread: Re: string class and vc++.wank :)
- Next by thread: Re: string class and vc++.wank :)
- Index(es):
Relevant Pages
|