?? searchmenu.h
字號:
#ifndef SEARCHMENU_H_
#define SEARCHMENU_H_
//定義查詢菜單函數(shù)
int search_menu_select()
{
char selection;
cout<<"********************************菜單******************************"<<endl;
cout<<"* a:按學(xué)號查詢 *"<<endl;
cout<<"* b:按姓名查詢 *"<<endl;
cout<<"* c:按科目查詢 *"<<endl;
cout<<"* d:按成績查詢 *"<<endl;
cout<<"* e:按學(xué)期查詢 *"<<endl;
cout<<"******************************************************************"<<endl;
do
{
cout<<"請輸入您的選擇(a--e):";
cin>> selection;
}while( selection<'a' || selection>'e'); //如果選擇項不在a~e之間則重輸
return selection; //返回選擇項,主函數(shù)根據(jù)該數(shù)調(diào)用相應(yīng)的函數(shù)
}
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -