新手入门,请问%.0f和%d还有%.0f%三者怎么区别?谢谢!
%.0f%跟%.0f一样
printf("%.0f",10.5);//会四舍五入进位 printf("%d",10.5);//c保存int和float类型方式不同,输出异常