数据结构课程设计通讯录管理系统 下载本文

址 5-邮编):\ cin>>c; if(c>6||c<1) cout<<\抱歉,您的输入有误,请从新输入。\ } f=0; } } if(f==1) cout<<\抱歉,未找到此人!\ do { switch(c) //因为当找到第i个学生时,for语句后i自加了1,所以下面的应该把改后的信息赋值给第i-1个人 { case 1: cout<<\将该生的学号改为:\ cin>>num; strcpy(student[i].num,num); break; case 2:cout<<\将该生的姓名改为:\ cin>>name; strcpy(student[i].name, name); break; case 3:cout<<\将该生的联系电话改为:\ cin>>tel; strcpy(student[i].telphone,tel); break; case 4:cout<<\将该生的通讯地址改为:\ cin>>address; strcpy(student[i].address,address); break; case 5:cout<<\将该生的邮编改为:\ cin>>post; strcpy(student[i].postcode,post); break; } cout<>b; } while(b==0); Sav(m); cout<<\修改后所有信息如下;\ Scan(); cout<<\如果您想继续修改请按1,否则按0:\ cin>>t;

switch(t) { case 1: Mod();break; case 0: break; default :break; } }

void Add() //添加函数 { int n=Load(); int i,m; cout<<\请输入您要添加的学生通讯信息的个数:\ cin>>m; for (i=n;i>student[i].num; cout<>student[i].name; cout<>student[i].telphone; cout<>student[i].address; cout<<\请输入该生的邮编:\ cin>>student[i].postcode; cout<