By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,171 Members | 1,004 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,171 IT Pros & Developers. It's quick & easy.

Converting an integer to a string

P: 46
This problem seems to have a fairly simple solution in C, and google seems to love to pull up solutions for C. However, C++ just seems have the exact opposite luck.

So pretty much, I want to convert an integer to a C++ string. This way the function will return the string value: "6 and 9", when given the values 6 and 9. Any good ways to do this?

Thanks,
Austen :-)
Mar 14 '07 #1
Share this Question
Share on Google+
1 Reply


P: 46
This problem seems to have a fairly simple solution in C, and google seems to love to pull up solutions for C. However, C++ just seems have the exact opposite luck.

So pretty much, I want to convert an integer to a C++ string. This way the function will return the string value: "6 and 9", when given the values 6 and 9. Any good ways to do this?

Thanks,
Austen :-)
gah! stupid me should have looked at the FAQ.
Sorry >.<
Mar 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.