拼接字符串,格式化数字等

char temp[16];
sprintf(temp, "%i.%i", temperature/10,temperature%10); //
printf("===温度==%s==\r\n",temp);

猜你喜欢

转载自blog.csdn.net/qq_25430563/article/details/89058311
今日推荐