M
mos
Hi!
the question can describle as code:
//os like "mike head hello world!"
string GetRest(istringstream& os)
{
string name,part; //and maybe some other element
os >> name >> part;
//do something...
ostringstream stream2;
stream2 << stream.rdbuf();
return stream2.str()
}
I just want the rest of os ("hello world!"), but my method seems ugly, is
there a graceful way?
thanks in advance.
jiang.yu
the question can describle as code:
//os like "mike head hello world!"
string GetRest(istringstream& os)
{
string name,part; //and maybe some other element
os >> name >> part;
//do something...
ostringstream stream2;
stream2 << stream.rdbuf();
return stream2.str()
}
I just want the rest of os ("hello world!"), but my method seems ugly, is
there a graceful way?
thanks in advance.
jiang.yu