¿Cómo convertir de int a char *?
La única forma que conozco es:
#include <sstream>
#include <string.h>
using namespace std;
int main() {
int number=33;
stringstream strs;
strs << number;
string temp_str = strs.str();
char* char_type = (char*) temp_str.c_str();
}
Pero, ¿hay algún método con menos escritura?