C语言,使用rand()函数,编写程序,随机输出同学们的姓名和学号,在线等...答:if(ch=='\n')n++;}//统计人数fclose(fp);bb=time(0);srand(bb);m=rand()%n+1;n=0;fp=NULL;fp=fopen("student.txt","r");while(!feof(fp)&&n<m){n++;fscanf(fp,"%s %s",name,&num);}printf("随机抽取:%s %s\n",name,num);fclose(fp);system("pause");}文件内容:...