This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: g++/stl bug?
- From: John Love-Jensen <eljay at adobe dot com>
- To: Kate minc <kate_minc_2000 at yahoo dot com>, <gcc-help at gcc dot gnu dot org>, <gcc-bug at gcc dot gnu dot org>
- Date: Wed, 06 Nov 2002 06:55:50 -0600
- Subject: Re: g++/stl bug?
Hi Kate,
#include <iostream>
#include <string>
using namespace std;
void main() {
string one="one";
string two="two";
string onepart = one.substr(1,1);
cout << "onepart :" << onepart << endl;
string twopart = two.substr(1,1);
cout << "onepart :" << onepart << endl;
cout << "twopart :" << twopart << endl;
}
Voila.
--Eljay