学生籍贯信息管理系统(c)_第1页
学生籍贯信息管理系统(c)_第2页
学生籍贯信息管理系统(c)_第3页
学生籍贯信息管理系统(c)_第4页
学生籍贯信息管理系统(c)_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、l29, the company responsible for a variety of procedures for reimbursement document, invoice review, approval of work; 30, regularly convened general meeting of shareholders, preparation work for the meeting; 31, the company responsible for payroll management jobs, including around salary survey, em

2、ployee salary, salary accounting methods developed, payroll accounting, payment of wages, bonuses; 32, the company responsible for delivery of financial procedures; 33, according to the companys strategic development plan, the preparation and management of funds to meet day-to-day operating funding

3、requirements to ensure the companys safety, liquidity and profitability of the funds; 34, responsible for the environmental protection building materials Corporation issued by the Corporation Annual, monthly economic indicators in the assessment of the economic responsibility system of proposed amen

4、dments; 35, the company responsible for all types of contracts and tracking, implementation, implementation of the agreement, abnormality was detected in time to take appropriate measures and feedback to the leadership; 36, regular inspection, analysis, budget implementation of the business and fina

5、ncial performance, and to propose measures to increase revenue and reduce expenditure; 37, responsible for organizing the companys contracting business tenders; 38, responsible for preparing the annual budget and final accounts, distribution of profits, loss compensation plan; 39, responsible for th

6、e violations of financial discipline, or damage the companys interests (corruption and bribery) review of the Act; 40,学生籍贯信息管理系统(c).txt吃吧吃吧不是罪,再胖的人也有权利去增肥!苗条背后其实是憔悴,爱你的人不会在乎你的腰围!尝尝阔别已久美食的滋味,就算撑死也是一种美!减肥最可怕的不是饥饿,而是你明明不饿但总觉得非得吃点什么才踏实。编制一个学生籍贯信息管理系统,每个学生信息包括:学号、姓名、籍贯。具体功能: (1)创建信息链表并以磁盘文件保存; (2)读取磁盘文件并

7、显示输出所有学生的籍贯信息; (3)按学号或姓名查询其籍贯; (4)按籍贯查询并输出该籍贯的所有学生; (5)能添加、删除和修改学生的籍贯信息#include #include #define LEN sizeof(struct student)#define NULL 0struct studentlong num;char name20;char jg20;struct student *next;int n=0;void save(struct student *head) FILE *fp;char filename20;struct student *p1;printf(Please

8、 input the filenamen);scanf(%s,filename);if(fp=fopen(filename,w)=NULL) printf(cant open filen); return; for(p1=head;p1!=NULL;p1=p1-next) fprintf(fp,%ld,p1-num); fputc(t,fp); fprintf(fp,%s,p1-name); fputc(t,fp); fputc(t,fp); fprintf(fp,%s,p1-jg); fputc(n,fp); free(p1);fclose(fp);void print(struct stu

9、dent *head) struct student*p;printf(nNow,these information is:n);p=head;if(head!=NULL)do printf(%ldt%stt%sn,p-num,p-name,p-jg); p=p-next; while(p!=NULL);struct student *creat() struct student *head,*p1,*p2;char ch;p1=p2=(struct student *)malloc(LEN);printf(n Welcome to student jiguan system!n);print

10、f(Please input ones num,name and jiguann);printf(0 0 0:exitn);scanf(%ld%s%s,&p1-num,p1-name,p1-jg);head=NULL;while(p1-num!=0) n=n+1; if(n=1)head=p1; else p2-next=p1; p2=p1; p1=(struct student *)malloc(LEN); scanf(%ld%s%s,&p1-num,p1-name,p1-jg); p2-next=NULL;free(p1);printf(Save?Y/Nn);scanf(%c,&ch);s

11、canf(%c,&ch);if(ch=y|ch=Y) save(head);print(head);return(head);void loadf()FILE *fp;int N=n;char filename20;struct student *p1;p1=(struct student *)malloc(LEN);printf(Please input the filenamen);scanf(%s,filename);if(fp=fopen(filename,r)=NULL) printf(cannot open filen); return; printf(File has been

12、open:n);for (;N!=0;N-) fscanf(fp,%ld%s%s,&p1-num,p1-name,p1-jg); printf(%ldt%stt%sn,p1-num,p1-name,p1-jg); free(p1);fclose(fp);void xsearch(struct student*head)long num; struct student *p1,*p2; int c=0; printf(Please input the search number:n); scanf(%ld,&num); for(p1=head;p1!=NULL;p1=p1-next) if(nu

13、m=p1-num) c=c+1; printf(%ldt%stt%sn,p1-num,p1-name,p1-jg); printf(There are %d results!n,c); void nsearch(struct student*head)char name20; struct student *p1,*p2; int c=0; printf(Please input the search name:n); scanf(%s,name); for(p1=head;p1!=NULL;p1=p1-next) if(strcmp(name,p1-name)=0) c=c+1; print

14、f(%ldt%stt%sn,p1-num,p1-name,p1-jg); printf(There are %d results!n,c);void jsearch(struct student*head)char jg20; struct student *p1,*p2; int c=0; printf(Please input the search jiguan:n); scanf(%s,jg); for(p1=head;p1!=NULL;p1=p1-next) if(strcmp(jg,p1-jg)=0) c=c+1; printf(%ldt%stt%sn,p1-num,p1-name,

15、p1-jg); printf(There are %d results!n,c);void search(struct student*head) int a=4; for(;a!=0;) printf(nWelcome to student juguan system!n); printf(n search information systemn); printf( 0:exitn); printf( 1:use xuehao searchn); printf( 2:use name searchn); printf( 3:use jiguan searchn); printf(Please

16、 select:n); scanf(%d,&a); clrscr(); switch(a) case 0:printf(Thank you for playing!Bye!n); break; case 1:xsearch(head);break; case 2:nsearch(head);break; case 3:jsearch(head);break; default:printf(Choose error,choose again!n);break; struct student *del(struct student *head,struct student *p1) struct

17、student *p2; char ch; if(p1=NULL) printf(No result,cant manage!n); elseif(p1=head) head=p1-next; else for(p2=head;p2-next!=p1;p2=p2-next); p2-next=p1-next; n=n-1; printf(Save the change?Y/Nn); scanf(%c,&ch); scanf(%c,&ch); if(ch=y|ch=Y) save(head); free(p1); free(p2); return(head);void change(struct

18、 student *head,struct student *p1) char ch; if(p1=NULL) printf(No result,cant manage!n); elseprintf(Please input the new information of it.n); scanf(%ld%s%s,&p1-num,p1-name,p1-jg); printf(Save the change?Y/Nn); scanf(%c,&ch); scanf(%c,&ch); if(ch=y|ch=Y) save(head); struct student * add(struct stude

19、nt *head,struct student *p1) int a;char ch;struct student *p0,*p2;p0=p2=(struct student *)malloc(LEN);if(p1=NULL) printf(No result,cant manage!n);else printf(Please input the new students information.n); scanf(%ld%s%s,&p0-num,p0-name,p0-jg); printf(Where would you like to add?n); printf( 1:add befor

20、e itn); printf( 2:add after itn); scanf(%d,&a); switch(a) case 1:if(p1=head) p0-next=p1;head=p0; else for(p2=head;p2-next!=p1;p2=p2-next); p0-next=p1; p2-next=p0; break; case 2:if(p1-next=NULL) p1-next=p0; p0-next=NULL; else p2=p1-next; p0-next=p2; p1-next=p0; break; default:printf(Choose error,choo

21、se again!n); break; n=n+1;printf(Save the change?Y/Nn);scanf(%c,&ch);scanf(%c,&ch);if(ch=Y|ch=y) save(head); free(p0); free(p1); free(p2); return(head);struct student* inman(struct student*head) char ch; int a=4; long num; char name20; char jg20; struct student *p1; printf(Input its feature,so you c

22、an deal with it.n); printf( 0:exitn); printf( 1:input its numbern); printf( 2:input its namen); printf( 3:input its jiguann); scanf(%d,&a); clrscr(); switch(a) case 0:p1=NULL;break; case 1:printf(Please input the search number:n); scanf(%ld,&num); for(p1=head;p1!=NULL;p1=p1-next) if(num=p1-num) prin

23、tf(%ldt%stt%sn,p1-num,p1-name,p1-jg); printf(Is this one you want?n); printf(Y/Nn); scanf(%c,&ch); scanf(%c,&ch); if(ch=Y|ch=y) break; break; case 2:printf(Please input the search name:n); scanf(%s,name); for(p1=head;p1!=NULL;p1=p1-next) if(strcmp(name,p1-name)=0) printf(%ldt%stt%sn,p1-num,p1-name,p

24、1-jg); printf(Is this one you want?n); printf(Y/Nn); scanf(%c,&ch); scanf(%c,&ch); if(ch=Y|ch=y) break; break; case 3:printf(Please input the search jiguan:n); scanf(%s,jg); for(p1=head;p1!=NULL;p1=p1-next) if(strcmp(jg,p1-jg)=0) printf(%ldt%stt%sn,p1-num,p1-name,p1-jg); printf(Is this one you want?

25、n); printf(Y/Nn); scanf(%c,&ch); scanf(%c,&ch); if(ch=Y|ch=y) break; break; default:printf(Choose error,choose again!n);p1=NULL;break; if(p1=NULL) printf(Thats all!n);return p1;struct student * manage(struct student *head) struct student *p1;int a=4;p1=(struct student*)malloc(LEN);for(;a!=0;) printf(nWelcome to the student jiguan system!n); printf(n manage information system n); printf(What are you going to do?n); printf( 0:exitn); printf( 1:add informationn); printf( 2:delete infor

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论