g++/stl bug?

John Love-Jensen eljay@adobe.com
Wed Nov 6 04:59:00 GMT 2002


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



More information about the Gcc-help mailing list