if (T==NULL) { } else { }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
ChangeBirthday(T);
printf(\不存在家谱树!请返回重新选择\
case 3:
system(\清屏幕 if (T==NULL) { } else { }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
ChangeSW(T);
printf(\不存在家谱树!请返回重新选择\
case 4:
system(\清屏幕 if (T==NULL) { } else {
printf(\不存在家谱树!请返回重新选择\
- - 26 - -
ChangeBrothadd(T); }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
case 5:
system(\清屏幕 if (T==NULL) { } else {
ChangeAddress(T); }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
printf(\不存在家谱树!请返回重新选择\
case 6:
system(\清屏幕 if (T==NULL) { } else {
ChangeVocation(T); }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
printf(\不存在家谱树!请返回重新选择\
case 7:
- - 27 - -
system(\清屏幕 if (T==NULL) { } else { }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
ChangeDegree(T);
printf(\不存在家谱树!请返回重新选择\
case 0:
break;
default:
fflush(stdin); system(\
SetConsoleTextAttribute(consolehwnd,FOREGROUND_INTENSITY|FOREGROUND_RE
D);//设置文字颜色为红色
printf(\对不起!你的选择不在服务范围之内!-------------\printf(\请您再次选择所需的服务项!-----------------\printf(\请按任意键键继续操作--------------------\printf(\谢谢合作!--------------------------\\n\\t\
SetConsoleTextAttribute(consolehwnd,FOREGROUND_INTENSITY|FOREGROUND_GR
EEN|FOREGROUND_RED|FOREGROUND_BLUE);//设置文字颜色为白色
}
///////////////////////////////////////////////////////////////////////////////
}
}
if(c==0) break;
getchar(); break;
- - 28 - -
void MainMenueInquire(BinTree T) {//菜单选择
SetConsoleTextAttribute(consolehwnd,FOREGROUND_INTENSITY|FOREGROUND_GR
int c; while(1) {
c=100;
system(\好像是清屏幕 HANDLE consolehwnd;
consolehwnd = GetStdHandle(STD_OUTPUT_HANDLE);
EEN|FOREGROUND_RED); //设置文字颜色为黄色
SetConsoleTextAttribute(consolehwnd,FOREGROUND_INTENSITY|FOREGROUND_GR
printf(\
printf(\ ---*****---请选择你的操作---****---\
EEN|FOREGROUND_RED|FOREGROUND_BLUE);//设置文字颜色为白色
SetConsoleTextAttribute(consolehwnd,FOREGROUND_GREEN|FOREGROUND_INTENS
printf(\
ITY); //设置文字颜色为绿色
printf(\按姓名查找----------------------------\printf(\按出生日期查找------------------------\
printf(\按成员是否健在及死亡日期查找----------\printf(\按出生地址查找------------------------\printf(\按家庭住址查找------------------------\printf(\按简历查找----------------------------\printf(\按父亲姓名查找------------------------\printf(\按辈分查找----------------------------\printf(\按身高查找----------------------------\printf(\按年龄查找----------------------------\printf(\查询某一成员的所有直系亲属------------\printf(\查询某一成员的所有嫡系祖先------------\printf(\查询两个人的关系----------------------\printf(\查询某人生存天数----------------------\
- - 29 - -
printf(\返回上一菜单,退出查找----------------\
SetConsoleTextAttribute(consolehwnd,FOREGROUND_INTENSITY|FOREGROUND_GR
EEN|FOREGROUND_RED|FOREGROUND_BLUE); //设置文字颜色为白色
printf(\printf(\请输入你的选项:(0~5)\fflush(stdin); scanf(\fflush(stdin); switch(c) { case 1:
system(\清屏幕 if (T==NULL) { } else { }
printf(\请按Enter键继续操作--------------\fflush(stdin); getchar(); break;
InquireName(T);
printf(\不存在家谱树!请返回重新选择\
case 2:
system(\清屏幕 if (T==NULL) { } else { }
InquireBirthday(T);
printf(\不存在家谱树!请返回重新选择\
- - 30 - -