您的位置:首页 > 其它

练习

2014-04-15 19:58 295 查看
随机点名
/* Note:Your choice is C IDE */#include "stdio.h"#include "stdlib.h"#define N 25main(){int i,j,temp;int students;for(i=0;i<N;i++){temp = rand()%45 +1 ;if(i>0){练习for(j=0;j<=i-1;j++){if(temp == students[j]){temp = rand()%45 +1;j=-1;}}}students[i] = temp;printf("the %d student no is : %d\n",i,students[i]);}}  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: