hey,
to go to string:
double answer1,n1,n2;
string t1;
stringstream stream;
answer1=n2-n1;
stream << answer1; // this changes it from double to string; shove it into the stream
t1 = stream.str(); // inserts a string of t1
//*************************************
to go back to double...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.