Re: string class

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

 



Yes, I definitely do! That's what happens when you Cut and Paste without
paying attention! :-)

Chris

----- Original Message ----- 
From: <llewelly@xxxxxxxxxxxx>
To: "Chris Wolstenholme" <chris@xxxxxxxxxxxxxxxxxxxx>
Cc: <gcc-help@xxxxxxxxxxx>
Sent: Saturday, June 05, 2004 2:28 PM
Subject: Re: string class


> "Chris Wolstenholme" <chris@xxxxxxxxxxxxxxxxxxxx> 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]


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux