




免费预览已结束,剩余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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 铁路企业反恐培训课件
- 诗歌鉴赏公开课
- 市市场监督管理局药械化安全监管工作总结
- 2025年情趣跳蛋行业研究报告及未来行业发展趋势预测
- 2025年环保产业知识产权整合与绿色国家标准制定委托协议
- 2025-2030中国环丙氟哌酸市场运营形势分析与行情监测调研报告
- 2025-2030中国煤炭行业市场前景及发展趋势洞悉研究报告
- 2025-2030中国炼油产业经营优势与未来销售规模预测报告
- 2025-2030中国火锅店行业发展趋势及经营效益预测报告
- 2025-2030中国海水淡化服务总体规模预测与发展前景趋势分析报告
- 教师和学校的故事征文
- 消费者心理学PPT完整全套教学课件
- 部编六年级语文上册一二单元教案
- 炮塔铣床数显表使用说明书
- 乒乓球体育课教案1
- 自然灾害与防治
- 先进制造技术第1章
- 2023年兴文县中医院康复医学与技术岗位招聘考试历年高频考点试题含答案解析
- 用地性质分类表代码
- 中班语言绘本《点》课件
- 浙江省地方课程《人自然社会》课件
评论
0/150
提交评论