J
JM
Hi,
If you change the same string stream to a new string, why is it that
you have to .clear() it before using it? If I don't I get garbage.
Thanks,
Jason
ex.
string a = "12";
string b = "15";
float fa,fb;
istringstream is;
is.str(a);
is>>fa;
is.clear( ) // must do this....
is.str(b)
is>>fb
If you change the same string stream to a new string, why is it that
you have to .clear() it before using it? If I don't I get garbage.
Thanks,
Jason
ex.
string a = "12";
string b = "15";
float fa,fb;
istringstream is;
is.str(a);
is>>fa;
is.clear( ) // must do this....
is.str(b)
is>>fb