shinymoon
asked on
[vc++ .net 2005] converting from int to std::string
Hello!
In managed c++, how can I convert int to std::string?? I have a short int type variable and I need to do something like "str += shortIntValue"
Thank you :)
In managed c++, how can I convert int to std::string?? I have a short int type variable and I need to do something like "str += shortIntValue"
Thank you :)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I was using std::string. I used the second solution that is to use ostringstream. Only thing was I had to add header #include <sstream>. That's it.
Thank you so much, drichards!