cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Convert an int array to a String array?
Convert an int array to a String array?
Mar 19, 2012 at 10:50pm UTC
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 UTC
Moschops
(7244)
Do you mean an array of strings, or a string, or an array of char?
Mar 19, 2012 at 10:53pm UTC
Computergeek01
(5613)
Either way the answer is std::ostringstream:
http://www.cplusplus.com/reference/iostream/ostringstream/
Mar 19, 2012 at 10:56pm UTC
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 UTC
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.