日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

考勤管理系统c语言,C语言课程设计学生考勤系统最终版(范文1)

發布時間:2025/3/15 13 豆豆
生活随笔 收集整理的這篇文章主要介紹了 考勤管理系统c语言,C语言课程设计学生考勤系统最终版(范文1) 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

《C語言課程設計學生考勤系統.doc》由會員分享,可免費在線閱讀全文,更多與《C語言課程設計學生考勤系統(最終版)》相關文檔資源請在幫幫文庫(www.woc88.com)數億文檔庫存里搜索。

1、;return(head);}voidenter()*錄入函數*{structStudent*head,*;charselect='y',cla[];intsub,stu,num,flag=;rintf(quot請輸入上課班級:quot);scanf(quot%squot,cla);strcat(cla,quotdatquot);=head=load(cla);system(quotclsquot);while(select=='y'||select=='Y'){rintf(quot\n\n\nquot);rintf(quot\t*************************班的考勤信息返回菜單voidsave(structStudent*,char[]);structStudent*load(charfilename[])開始數據寫入文件關閉文件退出打開文件開始打開文件讀出數據返回菜單結構的應用Ifelse結構和while結構嵌套結構:while(gtnum!=){n=n+;if(n==)head=;elsegtnext=;=;=(structStudent*)malloc(LEN);scanf(quot%s%d%squot,gtname,amgtnum,gtsex);gtmath=gtEnglish=gthysics=gtMks=gtC=gtteal=gtPE=;}gtnext=NULL;=head;while(!=NULL){fw。

2、quot);search_();}eak;case:{ch=getchar();system(quotclsquot);back();}eak;default:rintf(quot\t\t\t輸入錯誤,請重新輸入!!!quot);}rintf(quot\n\t\t\t\tquot);}ch=getchar();}voidsave(structStudent*head,charfilename[]){FILE*f;structStudent*=head;if((f=foen(filename,quotwbquot))==NULL){rintf(quotcannotoenfile\nquot);exit();}while(!=NULL){fwrite(,LEN,,f);=gtnext;}fclose(f);}structStudent*load(charfilename[]){FILE*f;structStudent*head,*,*;head=NULL;=NULL;if((f=foen(filename,quotrbquot))==NULL){rintf(quotcannotoenfile\nquot);exit();}while(!feof(f)){=(structStudent*)malloc(LEN);if(fread(,LEN,,f)==){if(head==NULL)head=;if()gtnext=;=;}}gtnext=NULL。

3、;charselect='y',cla[];intnum,flag=;rintf(quot請輸入上課班級:quot);scanf(quot%squot,cla);strcat(cla,quotdatquot);=head=load(cla);rintf(quot請輸入要查詢同學的座號:quot);scanf(quot%dquot,amnum);system(quotclsquot);while(!=NULL){if(gtnum==num){rintf(quot\n\nquot);rintf(quot****************************************\nquot);rintf(quot座號姓名性別數學英語物理馬克思C語言教師口語體育\nquot);rintf(quot%d%s%s%d%d%d%d%d%d%d\nquot,gtnum,gtname,gtsex,gtmath,gtEnglish,gthysics,gtMks,gtC,gtteal,gtPE);rintf(quot****************************************\nquot);flag=;}=gtnext;}if(flag==)rintf(quot\t\t!!!沒有這個學生信息,請核對后再輸入!!!\n\nquot);getch();system(quotclsquot);mune_();}voidsearch_(void。

4、)*查詢某班級信息*{charcla[];structStudent*head,*;rintf(quot請輸入您要查詢的班級名:quot);gets(cla);system(quotclsquot);rintf(quot\n\t\t\t%s班的考勤情況\n\nquot,cla);strcat(cla,quotdatquot);=head=load(cla);rintf(quot****************************************\nquot);rintf(quot座號姓名性別數學英語物理馬克思C語言教師口語體育\nquot);while(!=NULL){rintf(quot%d%s%s%d%d%d%d%d%d%d\nquot,gtnum,gtname,gtsex,gtmath,gtEnglish,gthysics,gtMks,gtC,gtteal,gtPE);=gtnext;}rintf(quot\n****************************************\nquot);getch();system(quotclsquot);mune_();}voidmodify(void)*修改函數*{inta,flag=;charcla[];structStudent*head,*;rint=;head=NULL;while(gtnum!=){n=n+;if(n==)head=;elsegtnext=。

5、t\t*\nquot);rintf(quot\t*、體育\t\t\t\t\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t********************************\nquot);rintf(quot\nquot);rintf(quot\t\t\t請輸入科目選項(~):\n\t\t\t\tquot);scanf(quot%dquot,amsub);while(){if(subgtamamsublt)eak;elserintf(quot\t\t\t輸入錯誤,請重新輸入\n\t\t\t\tquot);scanf(quot%dquot,amsub);}system(quotclsquot);rintf(quot請輸入本次課缺席同學的座號:quot);scanf(quot%dquot,amstu);rintf(quot\nquot);rintf(quot請輸入該同學的缺課節數:quot);scanf(quot%dquot,amnum);while(!=NULL){if(gtnum==stu)switch(sub){case:{gtmath+=num;}eak;case:{gtEnglish+=num;}eak;case:{gthysics+=num;}eak;case:{gtMks+=。

6、\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*、創建學生信息\t\t、修改學生信息\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*、查看班級考勤情況\t、退出考勤系統\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t***************************************************************\nquot);rintf(q******\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*、高等數學\t\t、大學英語\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*、大學物理\t\t、馬克思基本原理概論*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*、C程序設計基礎\t、教師口語\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\。

7、***************quot);rintf(quot\t\t\t◇********歡迎使用班級考勤系統********◇quot);rintf(quot\t\t\t********************quot);rintf(quot\n\t************************************************************\n\n\nquot);rintf(quot================================================================================quot);rintf(quot\n\n\n\t\t\t\t\n\t\t\t\t\tquot);getch();system(quotclsquot);}voidmune_(){intotion,ch;*定義一個選項的數據類型*rintf(quot\n\n\nquot);*制作的一個漂亮的選擇界面*rintf(quot\t***************************************************************\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*\t\t\t\t\t\t\t*\nquot);rintf(quot\t*、錄入本次課考勤情況\t、查詢學生考勤信息\t。

8、:quot);scanf(quot%dquot,amgtEnglish);rintf(quot\n\t\t請輸入大學物理缺勤節數:quot);scanf(quot%dquot,amgthysics);rintf(quot\n\t\t請重新輸入馬克思主義基本原理與概論缺勤節數:quot);scanf(quot%dquot,amgtMks);rintf(quot\n\t\t請重新輸入C語言缺勤節數:quot);scanf(quot%dquot,amgtC);rintf(quot\n\t\t請重新輸入英語口語缺勤節數:quot);scanf(quot%dquot,amgtteal);rintf(quot\n\t\t請重新輸入體育缺勤節數目:quot);scanf(quot%dquot,amgtPE);flag=;save(head,cla);rintf(quot\n\t\t修改成功!\n\t\tquot);eak;}=gtnext;}if(flag==){rintf(quot\t\t!!!沒有這個學生信息,請核對后再輸入!!!\n\nquot);}getch();system(quotclsquot);mune_();}voidcreat(void)*創建函數*{FILE*f;structStudent*head,*,*,*;charfilename[];n=;==(structStudent*)malloc(LEN);rintf(quot請輸入。

9、num;}eak;case:{gtC+=num;}eak;case:{gtteal+=num;}eak;case:{gtPE+=num;}eak;}=gtnext;}rintf(quot\n\n\t\t******輸入成功******!!!\nquot);rintf(quot是否繼續輸入(y\\n):quot);scanf(quot%cquot,amselect);}save(head,cla);getch();system(quotclsquot);mune_();}voidsearch_(void)*查詢個人信息*{structStudent*head,*uot\nquot);rintf(quot\t\t\t請輸入您所需的操作(~):\n\t\t\t\tquot);while(){scanf(quot%dquot,amotion);switch(otion){case:{ch=getchar();system(quotclsquot);enter();}eak;case:{ch=getchar();system(quotclsquot);search_();}eak;case:{ch=getchar();system(quotclsquot);creat();}eak;case:{ch=getchar();system(quotclsquot);modify();}eak;case:{ch=getchar();system(quotcl。

10、rite(,LEN,,f);=gtnext;}fclose(f);rintf(quot\t\t\t創建成功,按任意鍵返回主菜單\nquot);getch();system(quotclsquot);退出mune_();switch結構switch(sub){case:{gtmath+=num;}eak;case:{gtEnglish+=num;}eak;case:{gthysics+=num;}eak;case:{gtMks+=num;}eak;case:{gtC+=num;}eak;case:{gtteal+=num;}eak;case:{gtPE+=num;}eak;}while結構while(!=NULL){if(gtnum==a){rintf(quot\n\t\t請重新輸入高等數學缺勤節數:quot);scanf(quot%dquot,amgtmath);rintf(quot\n\t\t請重新輸入大學英語缺勤節數:quot);scanf(quot%dquot,amgtEnglish);rintf(quot\n\t\t請輸入大學物理缺勤節數:quot);scanf(quot%dquot,amgthysics);rintf(quot\n\t\t請重新輸入馬克思主義基本原理與概論缺勤節數:quot);scanf(quot%dquot,amgtMks);rintf(quot\n\t\t請重新輸入C語言缺勤節數:quot);scanf(quo。

11、你要創建班級的名稱(如果要創建的文件已存在,將覆蓋原文件):quot);gets(filename);strcat(filename,quotdatquot);if((f=foen(filename,quotwbquot))==NULL){rintf(quotcannotoenfile\nquot);exit();}rintf(quot請輸入學生的基本信息:姓名、座號、性別\nquot);scanf(quot%s%d%squot,gtname,amgtnum,gtsex);gtmath=gtEnglish=gthysics=gtMks=gtC=gtteal=gtPEtStudent*load(char[]);voidenter(void);*錄入函數*voidsearch_(void);*查詢函數_*voidsearch_(void);*查詢函數_*voidmodify(void);*修改函數*voidback(void);*退出函數*voidmune_();*界面*voidmune_();*界面*mune_();mune_();rintf(quot\nquot);}voidmune_(){rintf(quot\n\n\n\n\n\nquot);rintf(quot\t************************************************************quot);rintf(quot\t\t\t***** 。

12、;=;=(structStudent*)malloc(LEN);scanf(quot%s%d%squot,gtname,amgtnum,gtsex);gtmath=gtEnglish=gthysics=gtMks=gtC=gtteal=gtPE=;}gtnext=NULL;=head;while(!=NULL){fwrite(,LEN,,f);=gtnext;}fclose(f);rintf(quot\t\t\t創建成功,按任意鍵返回主菜單\nquot);getch();system(quotclsquot);mune_();}voidback(void)*退出函數*{rintf(quot\n\n\n\n\n\n\n\n\n\n\t\t\t\t感謝您的使用~\n\t\t\t\tquot);getch();exit();}f(quot\n\t\t請輸入要修改的班級:quot);scanf(quot%squot,cla);strcat(cla,quotdatquot);=head=load(cla);rintf(quot\n\t\t請輸入要修改的學生的座號:quot);scanf(quot%dquot,ama);while(!=NULL){if(gtnum==a){rintf(quot\n\t\t請重新輸入高等數學缺勤節數:quot);scanf(quot%dquot,amgtmath);rintf(quot\n\t\t請重新輸入大學英語缺勤節

總結

以上是生活随笔為你收集整理的考勤管理系统c语言,C语言课程设计学生考勤系统最终版(范文1)的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。