摘要: / % 四舍五入 向上取整ceil 向下取整floor #include <math.h> double floor(double x); double floor(double x); double ceil(double x); 使用floor函数。floor(x)返回的是小于或等于x的最大整数 阅读全文
posted @ 2018-02-08 23:52 卉卉卉大爷 阅读(1406) 评论(0) 推荐(0)
摘要: 例题5-10 UVA 207 PGA Tour Prize Money PGA巡回赛的奖金 解题: 1)fegets()函数 函数原型 char * fgets ( char * str, int num, FILE * stream ); 参数*buf: 字符型指针,指向用来存储所得数据的地址。b 阅读全文
posted @ 2018-02-08 19:57 卉卉卉大爷 阅读(379) 评论(0) 推荐(0)