C语言寒假大作战03
2.2.1 这个作业属于哪个课程 [班级链接]( https://edu.cnblogs.com/campus/zswxy/CST2019-2 ) 这个作业要求在哪 https://edu.cnblogs.com/campus/zswxy/CST2019-2/homework/10271 作业正文 https://i-beta.cnblogs.com/posts/edit 这个作业的目标 编写各年级题目操作函数,学习rand随机函数 其他文献 《C Prime Plus》《随机数rand资料》 2.2.2 设计思路和遇到的问题 对于rand随机函数理解不清楚 2.2.3 程序结果截图 2.2.4 程序代码 #include<stdio.h> #include<stdlib.h> void operation1(){ int a,b,i; printf("现在是一年级题目:\n请输入生成个数>"); scanf("%d",&a); for(i=0;i<a;i++){ int shu1=rand()%12; int shu2=rand()%12; char fh[2]={'+','-'}; b=rand()%2; printf("%2d %c %2d=___\n",shu1,fh[b],shu2); } } void operation2(){ int a,b,i; printf(