Re: string class

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

 



"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