考勤管理系统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)

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值