a1exlism
4/16/2019 - 3:14 PM

int2string

//  C lang way
char str[MAXN];
sprintf(str, "%d", num);

//  Cpp way c++11
std::string str = std::to_string(num);