c++ int转char * 和 动态内存分配
2019-10-25 本文已影响0人
mapleSeriesX
int i=0;
char *d= static_cast<char *>(malloc(sizeof(char *)));
sprintf(d,"i:%d ",i);
int i=0;
char *d= static_cast<char *>(malloc(sizeof(char *)));
sprintf(d,"i:%d ",i);