#include<sstream> #include<string> int main(){ std::string s; std::stringstream ss("A B C"); s = ss.str(); }