how to convert an int to astring in c++ code example
Example 1: change int to string cpp
#include <string>
std::string s = std::to_string(42);
Example 2: c++ convert int to cstring
#include<isotream>
#include<string>
string str = to_string(int);
char cstr[size] = "";
strcat_s( cstr, str.c_str());