求一个数据结构的链表通讯录 /再次贴我的这个程序—只要把相应的项改成你要的就行…无语中,那么多人用这个程序includeincludeincludeclass List{public:string goods;string status;int value;int num;int pos;List*next;};class Head{public:List*next;int ListLength;};string CUR_FILE(\"UNTITLED\");bool PrintList(Head*p);bool BuildTXT(Head*,string);void PrintTXT(string filename){string option=\"if exist;option=option+filename+\"type\"+filename;system(option);}/PrintTXTbool InitList(Head*&p){if。(p=new Head))return false;else{p->;ListLength=0;p->;next=NULL;return true;}}/InitListbool Number(Head*&p){List*lp=p->;next;int i=0;while(lp){lp->;pos=i;lp=lp->;next;i+;}return true;}/Numberbool CreateList(Head*&p,List*&end){List*lp,temp;cout;if。(p->;next=lp=new List))return false;cin>;>;lp->;goods>;>;lp->;status>;>;lp->;value>;>;lp->;num;while(lp->;num&lp->;value){if。(lp->;next=new List))return false;else p->;ListLength+;temp=lp;lp=lp->;next;cin>;>;lp->;goods>;>;lp->;status>;>;lp->;value>;>;lp->;num;}delete lp;end=temp;temp->;next=NULL;if。Number(p))。高手帮我看一个程序 是不是由双向链表作数据结构的一个通讯录管理系统。 单向链表用C语言编写一个通讯录系统,集合数据结构双向链表知识 类似/include\"stdafx.hincludeincludeincludeclass stu{char name[20];double age,homephone,telphone;char sex;public:stu(){}stu(char n[20],char se,double ag,double ho,double te){strcpy(name,n);age=ag;homephone=ho;telphone=te;}friend void main();};void main(){cout请选择您需要的操作。cout操作:\";cout(0)通讯录录入\";cout(1)增加人员\";cout(2)删除人员\";cout(3)修改数据\";cout(4)显示记录\";cout(5)退出\";cout选择相关操作请输入相对的括号里的阿拉伯数字。stu*s[50];int i=0;int j=0;bool flag2=0;char p;do{cin>;>;p;if((p>;='0'&p))flag2=1;elsecout指令错误。请重新输入:\";}while(flag2=0);switch(p){ case '0':/(0)通讯录录入{char name[20];double age,homephone,telphone;char sex,c;do{ cout请输入姓名:\";cin>;>;name;cout请输入性别:\";cin>;>;sex;cout请输入年龄:\";cin>;>;age;cout请输入家里的电话号码:\";cin>;>;homephone;cout请输入移动电话号码:\";cin>;>;telphone;j+;s[i]=new stu(name,sex,age,homephone,telphone);i+;cout数据录入成功,想继续录入吗(y/n)\";cin>;>;c;flag2=0;do{if(c。'y'&c。'n'){cout指令错误。请重新输入。cin>;>;c;}。C语言数据结构:链表的应用--通讯录管理 HELLO.C-Hello,world*/includestructperson{charname[8];chartel[15];charaddr[50];};charfilename[20]=\"E:\\txl.txt;FILE*f…
随机阅读
- 四川大学小自考英语专业怎么样? 四川大学自考英语本科
- 化学工程与工艺(精细化工与环境化工)本科生毕业后的本专业领域内的具体可参加职业有哪些?相应职业向上发展的职业路径是怎样的? 山西冶金技师学院2017
- 由动式前叉好还是气动式前叉好 电动车前叉液压避震怎么保养
- 嗯啊小浪货欠干 爸爸 有没有女主性格很冷漠小说?
- 自定义view画圆角矩形 CAD CAXA 的绘图快捷键
- 口袋妖怪蓝宝石复刻的伊布如何进化成仙子精灵?!多少级学习妖精系的 口袋妖怪始源蓝宝石冰伊布6
- “师者,传道授业解惑也”什么意思? 老师 传道受业
- 魔兽6.2附魔专业刚学会,学了德拉诺附魔图纸,上限达到700点之后,能开始做卷轴吗? 6.2 附魔卷轴
- 美国的纳斯达克股票市场属于主板市场吗 美国的那斯达克股票市场属于什么性质?
- 碘化钾与高锰酸钾反应的化学方程式 过氧化氢30度碘化钾催化分解速率
- 水井里养得活鲤鱼吗 要死的鲤鱼跟活鲤鱼放一起养可以吗
- 标志科学摆脱神学控制的标志 自然科学家从宗教神学的束缚中解放出来
- fm调频发射器天线外接 一个FM发射器能否同时发射不同频率信号?
- 澳中直邮馆官方购物频道 有哪些靠谱澳洲海淘网站?
- 天涯里章子怡泼墨事件里的叶家指的是谁 华北军政大学 李刚
- 陕西省西安市长安区韦曲街道288号晶鑫丽座小区邮编? 韦曲街道邮政编码
- 三个月的婴儿每天吃多少奶粉正常 三个月的宝宝要哈多少奶粉
- 四线格拼音卡片打印 用Excel怎样做带四线格拼音字母
- 猪场药物效果观察表 如何搞好猪场的药物保健?
- 卡伦购物 请教普吉岛卡伦和卡塔哪个海滩更适合游泳