您所在位置: 网站首页 / 手机通讯录代码.docx / 文档详情
手机通讯录代码.docx 立即下载
2025-08-27
约1.9万字
约31页
0
23KB
举报 版权申诉
预览加载中,请您耐心等待几秒...

手机通讯录代码.docx

手机通讯录代码.docx

预览

免费试读已结束,剩余 26 页请下载文档后查看

10 金币

下载文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

手机通讯录代码

第一篇:手机通讯录代码#include#includestructfriends_list{charname[10];charage[12];chartelephone[13];charbanji[6];charsn[13];charaddress[8];charsex[4];};intCount=0;FILE*fp;voidnew_friend(structfriends_listfriends[]);voidshow_friend(structfriends_listfriends[]);voidsearch_friend(structfriends_listfriends[]);voidstatistics_friend(structfriends_listfriends[]);voidxiugai_friend(structfriends_listfriends[]);voidshanchu_friend(structfriends_listfriends[]);intmain(void){intchoice;charname[10];charsn[12];structfriends_listfriends[50];do{printf(“t***********************************************n”);printf(“t$$n”);printf(“t$学生通讯系统功能选项$n”);printf(“t$$n”);printf(“t***********************************************n”);printf(“t1:新建2:显示3:查询4:统计5:修改6:删除0:退出n”);printf(“请选择功能:”);scanf(“%d”,&choice);switch(choice){case1:new_friend(friends);break;case2:show_friend(friends);break;case3:search_friend(friends);break;case4:statistics_friend(friends);break;case5:xiugai_friend(friends);break;case6:shanchu_friend(friends);break;case0:break;}}while(choice!=0);printf(“谢谢使用通讯录功能!n”);return0;}//新建voidnew_friend(structfriends_listfriends[]){structfriends_listf;intchoice;if(Count==50){printf(“通讯录已满!n”);return;}printf(“请输入新联系人的姓名:”);scanf(“%s”,&f.name);printf(“请输入新联系人的年龄:”);scanf(“%s”,&f.age);printf(“请输入新联系人的联系电话:”);scanf(“%s”,&f.telephone);printf(“请输入新联系人的学号:”);scanf(“%s”,&f.sn);printf(“请输入新联系人的班级:”);scanf(“%s”,&f.banji);printf(“请输入新联系人的地址:”);scanf(“%s”,&f.address);printf(“请输入新联系人的性别:”);scanf(“%s”,&f.sex);printf(“您添加了一个记录,内容如下:n”);printf(“t~~~~~~~~~~~~~~~~~~~~n”);printf(“t姓名性别班级学号地址电话年龄n”);printf(“t%s%s%s%s%s%s%sn”,f.name,f.sex,f.banji,f.sn,f.address,f.telephone,f.age);printf(“t~~~~~~~~~~~~~~~~~~~~n”);printf(“您确定要添加吗?”);scanf(“%d”,&choice);if(choice==1){fp=fopen(“file1.txt”,“a”);fprintf(fp,“%s%s%s%s%s%s%sn”,f.name,f.sex,f.banji,f.sn,f.address,f.telephone,f.age);fclose(fp);printf(“t&&&&&&&&n”);printf(“t&您已添加成功&n”);printf(“t&&&&&&&&n”);}elsereturn;friends[Count]=f;Count++;}//显示voidshow_friend(structfriends_
查看更多
单篇购买
VIP会员(1亿+VIP文档免费下)

扫码即表示接受《下载须知》

手机通讯录代码

文档大小:23KB

限时特价:扫码查看

• 请登录后再进行扫码购买
• 使用微信/支付宝扫码注册及付费下载,详阅 用户协议 隐私政策
• 如已在其他页面进行付款,请刷新当前页面重试
• 付费购买成功后,此文档可永久免费下载
全场最划算
12个月
199.0
¥360.0
限时特惠
3个月
69.9
¥90.0
新人专享
1个月
19.9
¥30.0
24个月
398.0
¥720.0
6个月会员
139.9
¥180.0

6亿VIP文档任选,共次下载特权。

已优惠

微信/支付宝扫码完成支付,可开具发票

VIP尽享专属权益

VIP文档免费下载

赠送VIP文档免费下载次数

阅读免打扰

去除文档详情页间广告

专属身份标识

尊贵的VIP专属身份标识

高级客服

一对一高级客服服务

多端互通

电脑端/手机端权益通用