Link to home
Start Free TrialLog in
Avatar of shinymoon
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 :)
ASKER CERTIFIED SOLUTION
Avatar of drichards
drichards

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shinymoon
shinymoon

ASKER

Yes! It worked!!
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!