Ubah int menjadi string CPP
#include <string>
std::string s = std::to_string(42);
The Rambling Lank
#include <string>
std::string s = std::to_string(42);
int x = 5;
string str = to_string(x);
std::to_string(23213.123)
int a = 10;
char *intStr = itoa(a);
string str = string(intStr);