摘要: 这个仅作为练习扩展使用,贴出代码,作为以后复习,不直接写结果。因为要自己推出#include int main(void){ int score; printf("pls input a score: "); scanf("%d", &score); if (score 100) { printf("wrong. score from 0 to 100.\n"); } else if (60 int main(void){ int i, j; i = 1; while (i int main(void){ ... 阅读全文
posted @ 2013-08-23 23:07 泛起的鱼 阅读(935) 评论(0) 推荐(0) 编辑
摘要: 1,if语句 1 #include 2 3 /* 4 *if (expr) 5 * stat 6 *else if (expr) 7 * stat 8 *else 9 * stat10 *11 *expr: expression12 *stat: statement -> expr; | { ... } 13 */14 15 #define EPISILON 0.000000116 17 int main(void)18 {19 double d = 5.0;20 21 // 对浮点数进行判断, 最好给一个判定范围22 /... 阅读全文
posted @ 2013-08-23 22:39 泛起的鱼 阅读(334) 评论(0) 推荐(0) 编辑