正在加载图片...
int main(void) i int choice; char name[10] 源程序 struct friends_ list friends50];/包含50个人的通讯录 dot printf("手机通讯录功能选项:1:新建2查询0:退出n"; printf("请选择功能:"); scanf"%d",& choice); switch(choice) case 1 new_ friend(friends); break; case 2. printf("请输入要查找的联系人名"); scanf"%s",name; search_ friend(friends, name); break; case 0: break: ]while(choice=0) printi("谢谢使用通讯录功能!n"); return 0:源程序 int main(void) { int choice; char name[10]; struct friends_list friends[50]; /* 包含50个人的通讯录 */ do{ printf("手机通讯录功能选项:1:新建 2:查询 0:退出\n"); printf("请选择功能:"); scanf("%d", &choice); switch(choice){ case 1: new_friend(friends); break; case 2: printf("请输入要查找的联系人名:"); scanf("%s", name); search_friend(friends, name); break; case 0: break; } }while(choice != 0); printf("谢谢使用通讯录功能!\n"); return 0; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有