该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
我的代码: #include #include #include#include void main() { int num=0,add=0; int score[3]={10,7,5}; char str[20],str1[10][20]; printf("注意!!!小朋友们如果除法除不尽就把商输入\n"); while(1) { int a=0,b=0,d=0,c=0,k=0,i=0,j=-1,result; char sf[4]={'+','-','*','/'}; while(1) { a=rand()%51; b=rand()%51; d=rand()%4; switch(d) { case 0:c=a+b;break; case 1:c=a-b;break; case 2:c=a*b;break; case 3:c=a/b;break; } if(c>=0 && c<=50) { sprintf(str,"%d %c %d = \n",a,sf[d],b); strcpy(str1[num],str); if(num==0) break; j=-1; for(i=0; i=90)printf("\nSMART\n"); else if(add>=80)printf("\nGOOD\n"); else if(add>=70)printf("\nOK\n"); else if(add>=60)printf("\nPASS\n"); else printf("\nTRY AGAIN\n"); } 怎么运行错误啊