This should work, it's in the FDIS:
#include <string>
using namespace std;
int main() {
string s;
s.push_back('c');
}
=============================
Bruce Eckel http://www.BruceEckel.com
Contains free electronic books: "Thinking in Java" & "Thinking in C++ 2e"