B
brightoceanlight
I have an integer. I need to return it as a string.
What is the best way to do this?
What is the best way to do this?
I have an integer. I need to return it as a string.
What is the best way to do this?
I have an integer. I need to return it as a string.
What is the best way to do this?
I have an integer. I need to return it as a string.
What is "the best way" ? ;-)What is the best way to do this?
ulrich said:one way is
int i;
string s = boost::lexical_cast<string>(i);
Boost is not part of the C++ language at this time.
I have an integer. I need to return it as a string.
What is the best way to do this?
Gernot Frisch said:something they really forgot when writing std::string is the
printf-function:
benben said:Of course! Boost is a library and C++ language is a language...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.