C++ ~ stringstream

#include <sstream>

stringstream ss;

string name="Tom";

ss<<"Hello "<<name<<endl;


cout<<ss.str();


reference
http://hatsukiakio.blogspot.tw/2009/04/c-stringstream.html

沒有留言: