This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Request for feature
- To: Mike Stump <mrs at windriver dot com>
- Subject: Re: Request for feature
- From: Dima Volodin <dvv at dvv dot org>
- Date: Tue, 09 Nov 1999 13:58:12 -0500
- CC: gcc at gcc dot gnu dot org, greg at Thing-Fish dot Kharkov dot NET
- Organization: Huh?
- References: <199911091851.KAA14556@kankakee.wrs.com>
Mike Stump wrote:
> #include <string>
> #include <stdio.h>
>
> main() {
> string a = "hhh";
> string b = "yyyy";
> string r;
> r=a+b;
> r+=a;
> puts(r.c_str());
> }
My kung-fu is better than your kung-fu:
#include <string>
#include <cstdio>
main() {
string a = "hhh";
string b = "yyyy";
string r;
r=a+b;
r+=a;
puts(r.c_str());
}
Dima