上海恒隆广场停车费:问一个C语言初级的有关文件的问题。急急急急急急!
来源:百度文库 编辑:神马品牌网 时间:2024/05/24 03:36:42
请问一下C语言里往文件里输入一个学生成绩,要求保留一位小数。应该怎么写啊。谢谢啦
用 %.1f 就可以了
scanf("%.1f",&x);//x is the variant which you want to save data
用 %.1f 就可以了
scanf("%.1f",&x);//x is the variant which you want to save data