班级信息管理系统_第1页
班级信息管理系统_第2页
班级信息管理系统_第3页
班级信息管理系统_第4页
班级信息管理系统_第5页
免费预览已结束,剩余1页可下载查看

下载本文档

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

文档简介

班级信息管理系统 include include include include struct contacks char name 10 char age 10 char sex 10 char mobile 10 char telephone 10 char Email 20 char address 20 con 50 int k 0 void enter void display void modify void del void save void query void main int a do printf n n n printf printf t twelcome to contacks system printf t t printf n n printf printf t 1 Input information printf t t t t n printf printf t 2 Display information printf t t t t n printf printf t 3 Modify information printf t t t t n printf printf t 4 Delete information printf t t t t n printf printf t 5 Save information printf t t t t n printf printf t 6 Query information printf t t t t n printf printf t 7 Exit printf t t t t n printf n printf Enter you choice scanf d switch a case 1 printf n enter break case 2 printf n display break case 3 printf n modify break case 4 printf n del break case 5 printf n save break case 6 printf n query break case 7 printf n exit 0 break default printf nThe choice is between 1 to 7 n while a 0 void enter char ch 20 printf nPlease enter the information n do printf nname scanf s con k name printf nage scanf s con k age printf nsex scanf s con k sex printf nmobile scanf s con k mobile printf ntelephone scanf s con k telephone printf nEmail scanf s con k Email printf naddress scanf s con k address k printf nDo you continue to input the information y n scanf s ch while strcmp ch y 0 strcmp ch Y 0 display void display int i printf the information is n printf name age sex mobile telephone Email address n for i 0 i k i printf n printf s s s s s s s con i name con i age con i sex con i mobile con i telephone con i Email con i address printf n printf n void modify int i char a 20 ch 10 printf nPlease enter the name scanf s a for i 0 i k i if strcmp con i name a 0 printf s s s s s s s con i name con i age con i sex con i mobile con i telephone con i E mail con i address printf nyou sure want change imformation y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf nPlease enter the name you want to change scanf s a for i 0 i k i if strcmp con i name a 0 printf nyou sure to change the name y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf nname scanf s con i name printf nyou sure to change the age y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf nage scanf s con i age printf nyou sure to change the sex y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf nsex scanf s con i sex printf nyou sure to change the mobile y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf nmobile scanf s con i mobile printf nyou sure to change the telephone y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf ntelephone scanf s con i telephone printf nyou sure to change the Email y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf nEmail scanf s con i Email printf nyou sure to change the address y n scanf s ch if strcmp ch y 0 strcmp ch Y 0 printf naddress scanf s con i address display void del int i j char c 20 ch 10 printf nenter you want delete name n printf name scanf s for i 0 i k i if strcmp c con i name 0 for j i j k j con j con j 1 printf t tyou had delete the information successful s n c k display void save FILE fp int i if fp fopen tongxunlu txt w NULL printf cannot write the file n exit 0 for i 0 strlen con i name 0 i fprintf fp s s s s s s s n con i name con i age con i sex con i mobile con i telephone con i Email con i address fclose fp void query int i char a 20 printf Please input the name you want to query n scanf s a for i 0 i k i if strcmp con i name a 0 printf the information you want to query is n printf name age sex mobile

温馨提示

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

评论

0/150

提交评论