STL StringStream

by ixmx


#include <sstream>

stringstream ss (stringstream::in | stringstream::out);

ss << 2345;

string value_string =  ss.str();

ss << “123343”;

int value;

ss >> value;

Advertisements