C语言课程设计,猜数游戏软件
for(j=i+1;j<5;j++) if(aid[i]= =aid[j]) { flag=1; break; } } }while(flag==1);times=1; while(times<=MAXTIMES) { key=0; key2=0; printf("NO.%d:please input five different int numbers to play!\n", times); for(i=0;i<5;i++) {scanf("%d",&num[i]);} for(i=0;i<5;i++) { if(!(num[i]<=9)&&(num[i]>=0)) { printf("Error!the numbers you input must be int numbers which / *判断所输数字是否合法则*/ /*程序主体部分*/