1//You can use stringstream else...
2#include <sstream>
3
4template <class T>
5inline std::string to_string (const T& t)
6{
7 std::stringstream ss;
8 ss << t;
9 return ss.str();
10}
11// You can convert any value to string by creating another variable and
12// importing your other non-string variable
13string to_string (unsigned long val);