freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

學(xué)生考勤管理系統(tǒng)報(bào)告-資料下載頁

2025-08-03 11:28本頁面
  

【正文】 學(xué)生信息)。return(head)。 }p1=head。p2=p1next。while(xunhuan_numstudent_num){while(p2!=NULL){if(p2kuangke_nump1kuangke_num){p3chidao_num=p2chidao_num。p3kuangke_num=p2kuangke_num。p3qingjia_num=p2qingjia_num。p3zaotui_num=p2zaotui_num。p3lesson_time=p2lesson_time。p3time=p2time。strcpy(p3lesson_name,p2lesson_name)。strcpy(p3name,p2name)。p2chidao_num=p1chidao_num。p2kuangke_num=p1kuangke_num。p2qingjia_num=p1qingjia_num。p2zaotui_num=p1zaotui_num。p2lesson_time=p1lesson_time。p2time=p1time。strcpy(p2lesson_name,p1lesson_name)。strcpy(p2name,p1name)。p1chidao_num=p3chidao_num。p1kuangke_num=p3kuangke_num。p1qingjia_num=p3qingjia_num。p1zaotui_num=p3zaotui_num。p1lesson_time=p3lesson_time。p1time=p3time。strcpy(p1lesson_name,p3lesson_name)。strcpy(p1name,p3name)。}p1=p2。p2=p2next。}p1=head。p2=p1next。xunhuan_num++。}printf(請(qǐng)輸入要查看的學(xué)科名稱:)。scanf(%s,lesson)。printf(請(qǐng)輸入要查看的時(shí)間范圍【輸入格式:時(shí)間(空格)時(shí)間】)。scanf(%ld%ld,amp。look_time1,amp。look_time2)。p1=head。while(p1!=NULL){if(strcmp(lesson,p1lesson_name)==0amp。amp。look_time1=p1timeamp。amp。p1time=look_time2)printf(學(xué)生姓名%s 曠課次數(shù)%d\n,p1name,p1kuangke_num)。p1=p1next。 }return(head)。}struct student *tongji_student(struct student *head){int n,i,j,zhongjian。struct student *p1。char zhongjian_name[50]。long look_time1,look_time2。if(head==NULL){printf(沒有學(xué)生信息)。return(head)。 }printf(請(qǐng)輸入一共的學(xué)科數(shù):)。scanf(%d,amp。n)。for(i=0。in。i++){printf(請(qǐng)輸入第%d 個(gè)學(xué)科名稱:,i+1)。scanf(%s,a[i].xueke_name)。a[i].people_num=0。 }printf(請(qǐng)輸入要查看的時(shí)間范圍由小到大【輸入格式:時(shí)間(空格)時(shí)間】)。scanf(%ld%ld,amp。look_time1,amp。look_time2)。p1=head。for(i=0。in。i++){while(p1!=NULL amp。amp。 look_time1=p1time amp。amp。 p1time=look_time2){if(strcmp(a[i].xueke_name,p1lesson_name)==0)a[i].people_num+=p1kuangke_num。p1=p1next。 }p1=head。 }for(j=0。jn1。j++) for(i=0。in1j。i++){if(a[i].people_numa[i+1].people_num){ zhongjian=a[i+1].people_num。a[i+1].people_num=a[i].people_num。a[i].people_num=zhongjian。strcpy(zhongjian_name,a[i+1].xueke_name)。strcpy(a[i+1].xueke_name,a[i].xueke_name)。strcpy(a[i].xueke_name,zhongjian_name)。 }}for(i=0。in。i++){printf(學(xué)科名稱%s 曠課人%d\n,a[i].xueke_name,a[i].people_num)。return(head)。}}struct student *zairu(){struct student *p1=NULL,*p2=NULL,*head=NULL。struct student student_ziliao[100]。int i=0,n=0。if((fp1=fopen(,rb+))==NULL){ printf(cannot open file\n)。return(head)。 } while(!feof(fp1)){if(fread(amp。student_ziliao[i],LEN,1,fp1)!=1){if(feof(fp1)){fclose(fp1)。 break。 } printf(file read error\n)。}i++。}n=i。p1=p2=(struct student *)malloc(LEN)。head=p1。for(i=0。in。i++){p1chidao_num=student_ziliao[i].chidao_num。p1kuangke_num=student_ziliao[i].kuangke_num。strcpy(p1lesson_name,student_ziliao[i].lesson_name)。p1lesson_time=student_ziliao[i].lesson_time。strcpy(p1name,student_ziliao[i].name)。p1qingjia_num=student_ziliao[i].qingjia_num。p1time=student_ziliao[i].time。p1zaotui_num=student_ziliao[i].zaotui_num。p2next=p1。p2=p1。p1=(struct student*)malloc(LEN)。 }p2next=NULL。return(head)。}void chucun(struct student *head){ struct student *p1。p1=head。fp1=fopen(,wb+)。while(p1!=NULL){fwrite(p1,LEN,1,fp1)。p1=p1next。 }fclose(fp1)。printf(儲(chǔ)存成功\n)。}void main(){struct student *head。int m。do{printf(***************************************************\n)。printf( 1_建立學(xué)生缺課記錄\n)。printf( 2_修改學(xué)生缺課記錄\n)。printf( 3_查詢學(xué)生缺課記錄\n)。printf( 4_查看單科曠課記錄\n)。printf( 5_查看學(xué)生曠課記錄\n)。printf( 6_載入學(xué)生曠課記錄\n)。printf( 7_儲(chǔ)存學(xué)生曠課記錄\n)。printf( 8_退出考勤管理程序\n)。printf(***************************************************\n)。scanf(%d,amp。m)。switch(m){case 1:head=creat()。print(head)。break。case 2:head=xiugai(head)。print(head)。break。case 3:chaxun(head)。break。case 4:head=tongji_lesson(head)。break。case 5:head=tongji_student(head)。break。case 6:head=zairu()。print(head)。break。case 7:chucun(head)。break。}}while(m!=
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1