2018年10月7日
摘要: 阅读全文
posted @ 2018-10-07 21:02 tuLIWEN 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 设计思想:利用C语言中的函数调用,先随机生成进行计算的数字,在随机生成运算符号将二者连接起来作为题目输出;在主函数中利用循环体生成制定题目的个数。 #include<stdio.h> #include<stdlib.h>#include<time.h>int takeTest();char getS 阅读全文
posted @ 2018-10-07 18:45 tuLIWEN 阅读(111) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h> #include<stdlib.h>#include<time.h>#define RANDOM(a,b) (rand()%((b+1)-(a)) + (a))#define GEN_VALUE() RANDOM(1, 100) void main(){ int 阅读全文
posted @ 2018-10-07 15:28 tuLIWEN 阅读(107) 评论(0) 推荐(0) 编辑