%f为啥在%c前面
#include
int main(){ int age = 18; float height = 1.850000; char unit = 'm'; printf("小明今年%d岁\n", age); printf("小明身高%f%c\n", height, unit);//他这个%f为啥在%c前面啊 printf("小明现在在慕课网上学习IT技术"); return 0; }#include
int main(){ int age = 18; float height = 1.850000; char unit = 'm'; printf("小明今年%d岁\n", age); printf("小明身高%f%c\n", height, unit);//他这个%f为啥在%c前面啊 printf("小明现在在慕课网上学习IT技术"); return 0; }2018-03-13
举报