Possible Duplicate:
int to std::string?
How can you convert int to std::string?
you can use stringstream; stole this from here:
#include <iostream>
#include <sstream>
int main() {
  int number = 123;
  std::stringstream ss;
  ss << number;
  std::cout << ss.str() << endl;
}
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With