This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: string class
Yes, I definitely do! That's what happens when you Cut and Paste without
paying attention! :-)
Chris
----- Original Message -----
From: <llewelly@xmission.com>
To: "Chris Wolstenholme" <chris@blueband.demon.co.uk>
Cc: <gcc-help@gcc.gnu.org>
Sent: Saturday, June 05, 2004 2:28 PM
Subject: Re: string class
> "Chris Wolstenholme" <chris@blueband.demon.co.uk> writes:
>
> > You need to specify the namespace for the string (which happens to be
std).
> >
> > There are two options:
> >
> > include<string.h>
>
> You mean '#include<string>' , without the '.h'
>
> >
> > int main()
> > {
> > std::string s1("hello world");
> >
> > return 0;
> > }
> [snip]