A
Azathot
Leszek said:How to I can convert int variable to string?
--- CUT HERE ---
#include <iostream>
#include <string>
#include <sstream>
template< class T >
std::string to_string( const T& _t ) {
std::stringstream os;
os << _t;
return os.str( );
};
int main( ) {
std::cout << to_string( 10 ) << std::endl;
return 0;
}
--- CUT HERE ---
Bye!