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);
本文标题:c++ int转char * 和 动态内存分配
本文链接:https://www.haomeiwen.com/subject/okrevctx.html
网友评论