V
Viet Le Hong
Hi,
Is there any way to initiate a istringstream object's string without
using constructor. I have tried the str() function but it did not work.
For example, I want to write the following code:
istreamstring iss(my_string);
then do somethings that involes the >> operator
then I want to change the string content in this buffer to other string
and use the >> operator on it again.
I have tried iss.str(my_new_string), but it does not work.Anybody knows
how to do this?
Thanks very much
Viet
Is there any way to initiate a istringstream object's string without
using constructor. I have tried the str() function but it did not work.
For example, I want to write the following code:
istreamstring iss(my_string);
then do somethings that involes the >> operator
then I want to change the string content in this buffer to other string
and use the >> operator on it again.
I have tried iss.str(my_new_string), but it does not work.Anybody knows
how to do this?
Thanks very much
Viet