C++将数字转化为字符

C++将数字转化为字符

int fd =100;
char str[255];
sprintf(str, "%d", fd);  	//将fd以十进制转化为字符串
(void) send(fd, str, strlen(str), 0);

猜你喜欢

转载自blog.csdn.net/qq_19332219/article/details/103607115
今日推荐