Convert an int array to a String array?

Mar 19, 2012 at 10:50pm
closed account (G854izwU)
Hey guys I'm working on this program and I was wondering what the best way to convert an int array to a string array is. Any help would be great!

-TheNewKid-
Mar 19, 2012 at 10:51pm
Do you mean an array of strings, or a string, or an array of char?
Mar 19, 2012 at 10:53pm
Either way the answer is std::ostringstream: http://www.cplusplus.com/reference/iostream/ostringstream/
Mar 19, 2012 at 10:56pm
closed account (G854izwU)
I meant an array of int's with up to 20 values to an array of string's with up to 20 values
Mar 19, 2012 at 11:47pm
closed account (G854izwU)
I changed my mind it would be even more helpful if someone could just tell me how to change just a plain int variable to a plain string variable and visa versa!

Thanks

-TheNewKid-
Topic archived. No new replies allowed.