📄 application.cpp
字号:
#include "Application.h"
void Application::Illuminate()
{
cout<<"\t*****************Illuminate*****************"<<endl;
cout<<"\t"<<endl;
cout<<"\tData struct binary searching tree"<<endl;
cout<<"\t"<<endl;
cout<<"\t******************************************"<<endl;
cout<<"\t"<<endl;
}
int Application::MenuSelect()
{
int cn=0;
cout<<"\t******************************************"<<endl;
cout<<"\t System 2.0 "<<endl;
cout<<"\t producer:Sapphire_Lee "<<endl;
cout<<"\t all rights reserved!"<<endl;
cout<<"\t******************************************"<<endl;
cout<<endl
<<"\t1.Input record"<<endl
<<"\t2.Display record"<<endl
<<"\t3.Save record"<<endl
<<"\t4.Load record"<<endl
<<"\t5.Delete record"<<endl
<<"\t6.Aquire record"<<endl
<<"\t7.Sort record"<<endl
<<"\t8.Analyse record"<<endl
<<"\t9.Exit "<<endl;
for( ; ; )
{
cout<<"\t";
cin>>cn;
if(cn<1||cn>9)
cout<<endl<<"\tError Input,Please input1-9"<<endl;
else
break;
}
return cn;
}
void Application::HandleMenu()
{
for( ; ; )
{
switch(MenuSelect())
{
case 1:
R.InPut();
break;
case 2:
R.Display();
break;
case 3:
R.Save();
break;
case 4:
R.Load();
break;
case 5:
R.DeleteRecord();
break;
case 6:
R.Search();
break;
case 7:
R.SortRecord();
break;
case 8:
R.Analyse();
break;
case 9:
cout<<"\tBye!"<<endl;
exit(1);
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -