int2str.cpp
1 #include <sstream>
2 #include "int2str.hpp"
3 
4 using namespace std;
5 
6 string int2str(int n)
7 {
8  stringstream ss;
9  ss << n;
10  return ss.str();
11 }
std::string int2str(int n)
Converts an integer to a string.
Definition: int2str.cpp:6
A function that converts an integer to a string.