资源简介
数据结构 家谱 大作业

代码片段和文件信息
#include
#include
#include
#include
#include
#include “genealogy.h“
using namespace std;
void main()
{
GEnealogy ged;
person pnode=new CSNode;
person resultname=new CSNode;
int choice1;
char Name[max_char_num]tag[max_char_num];
strcpy_s(tag“-1“);
while(1)
{
//输出主画面选择菜单
cout<<“***************************Genealogy System***************************“< cout<<“1.Build a new Genealogy “< cout<<“2.Read Genealogy Data from a binary dat file“< cout<<“3.Save Genealogy Data into disk“< cout<<“4.Add a person to the Genealogy“< cout<<“5.Modify a person in the Genealogy“< cout<<“6.Delete a person and his all offspring“< cout<<“7.Display the Genealogy in the tree form“< cout<<“8.Statistic a person status in the Genealogy“< cout<<“9.Find a person by his information“< cout<<“10.Find a person by relative relationshiop“< cout<<“0.Exit“< cin>>choice1;
switch(choice1)
{
case 1:
//选1,建立一个二叉树家谱,并输入根结点信息
system(“cls“);
cout<<“*************Build a new Genealogy Operation*********************“< strcpy_s(pnode->data.parentnametag);
ged.NewGEnealogy();
cout<<“Please input the information of the root person“< ged.InputData(pnode);
ged.Add(NULLpnode);
break;
case 2:
//选2,从文件读取数据建立二叉树
ged.CreateGEnealogy();
system(“cls“);
cout<<“***********************Read Opertation***************************“< cout<<“Read successfully“< break;
case 3:
//选3,保存二叉树信息到文件
system(“cls“);
cout<<“***********************Save Opertation***************************“< ged.SaveGEnealogy();
cout<<“Save successfully“< break;
case 4:
//选4,在二叉树添加结点
system(“cls“);
cout<<“***********************Add Child Opertation***************************“< if(ged.GetRoot())
ged.AddOperation();//根结点非空,调用addoperation()添加结点
else
{
//否则添加根结点
ged.NewGEnealogy();
cout<<“It‘s a null GenealogyPlease input the information of the root person“< ged.InputData(pnode);
ged.Add(NULLpnode);
}
break;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2016-04-04 20:30 数据结构大作业--家谱 全班同学用的\
文件 21684 2016-04-03 10:29 数据结构大作业--家谱 全班同学用的\280082-150530105413.jpg
文件 34264 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\genealogy.txt
文件 6481 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\main.txt
目录 0 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\
目录 0 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\Debug\
文件 115200 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\Debug\大作业.exe
文件 704976 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\Debug\大作业.ilk
文件 805888 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\Debug\大作业.pdb
目录 0 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\ipch\
目录 0 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\ipch\大作业-2f1d9b3b\
文件 16842752 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\ipch\大作业-2f1d9b3b\大作业-59face49.ipch
目录 0 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\
文件 5984256 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业.sdf
文件 894 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业.sln
文件 10240 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业.suo
目录 0 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\
文件 1250 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\cl.command.1.tlog
文件 11706 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\CL.read.1.tlog
文件 784 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\CL.write.1.tlog
文件 2490 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\li
文件 5024 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\li
文件 1360 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\li
文件 298682 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\main.obj
文件 946 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\mt.command.1.tlog
文件 1510 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\mt.read.1.tlog
文件 694 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\mt.read.2.tlog
文件 602 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\mt.write.1.tlog
文件 420864 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\vc100.idb
文件 274432 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\vc100.pdb
文件 381 2016-04-04 11:01 数据结构大作业--家谱 全班同学用的\大作业\大作业\Debug\大作业.exe.intermediate.manifest
............此处省略10个文件信息
- 上一篇:严蔚敏版数据结构光盘
- 下一篇:万能爬虫示范代码
相关资源
- Python全栈学习笔记面向对象大作业:
- 数据结构年终考题范围和答案 耿国华
- 数据结构 朱战力 习题解答 数据结构
- 数据结构课程设计 6 1 彩票系统
- 教学计划编制系统
- 大数(链表、数组)实现
- 西安电子科技大学 并行计算 霍红卫
- 自己写的航空订票系统c 版--数据结构
- 数据结构实验魔王语言
- 航空订票系统_数据结构课程设计
- 多项式求和(数据结构C 版)
- 尚观培训linux董亮老师关于数据结构的
- 北航人工智能原理课大作业源代码,
- 数据结构 知识点总结
- 华南理工大学数据结构复习提纲二
- 华南理工大学数据结构复习提纲一
- 数据结构用C 写的停车场系统源代码
- 数据结构(河北科技大学)
- MFC绘图小软件源代码(可当VC大作业用
- 数据结构考前习题 清华大学出版社
- 数据结构课件(北邮)
- 数据结构实验 基于栈的表达式求值
- 数据结构课程设计——图书管理系统
- 成绩管理系统(数据结构)
- 数据结构-最小通信网问题
- 数据结构课程设计同学通讯录系统
- 数据结构课程设计 公园导游图
- 数据结构殷人昆版的课后答案
- 2006年湖北工业大学409数据结构试题
- 数据结构实验-魔王语言-源码加实验报
评论
共有 条评论