c 2b 2b convert int to cstring

Solutions on MaxInterview for c 2b 2b convert int to cstring by the best coders in the world

showing results for - "c 2b 2b convert int to cstring"
Nawel
15 Jan 2020
1#include<isotream>
2#include<string>
3using namespace std;
4
5string str = to_string(int);
6char cstr[size] = "";
7strcat_s( cstr, str.c_str());
Beth
12 May 2017
1#include<isotream>
2#include<string>
3
4string str = to_string(int);
5char cstr[size] = "";
6strcat_s( cstr, str.c_str());