Possible Duplicate:
Easiest way to convert int to string in C++
class MyInteger
{
MyInteger() : m_val(0) { }
MyInteger()( int _val ) : m_val( _val ) {}
~MyInteger() {}
};
MyInteger myInteger(10);
std::string s = (std::string)myInteger
How can I write C++ function to get "10" in s?? I am new to C++.
Thanks you very much.