int main()
{
Course *c;
College a(0), b(1);
int k[10];
int i;
to:
cout<<"*****************************************\n"<<endl;
cout<<"* 歡迎使用高校學生成績管理系統1.0 *\n"<<endl;
cout<<"*****************************************\n"<<endl;
cout<<"* 請選擇功能串列 *\n"<<endl;
cout<<"* 1.資料錄入功能 *\n"<<endl;
cout<<"* 2.查詢功能 *\n"<<endl;
cout<<"* 3.洗掉功能 *\n"<<endl;
cout<<"* 4.排序功能 *\n"<<endl;
cout<<"* 5.輸出并結束 *\n"<<endl;
cout<<"*****************************************\n"<<endl;
cout<<"請輸入選項"<<endl;
cin>>i;
if(i==1)
{
c=new Course;
c->input();
b.Build(c);
}
else if(i==2)
{
cout<<"1-學生基本情況查詢 2-成績查詢"<<endl;
cin>>k[0];
if(k[0]==1)
{
cout<<"1-學號查詢 2-姓名查詢 3-宿舍號碼查詢"<<endl;
cin>>k[1] ;
if(k[1] ==1)
a.find_number();
else if(k[1] ==2)
a.find_name();
else if(k[1] ==3)
a.find_dom_number() ;
goto to;
}
else if(k[0] ==2)
b.find(a. get_head() ) ;
goto to;
}
else if(i==3)
{
a.delete_student(b) ;
goto to;
}
else if(i==4)
{
cout<<"1-綜合成績排序 2-實得學分排序"<<endl;
cin>>k[2] ;
if(k[2] ==2)
b.taxis_credit();
else if(k[2]==1)
b.taxis_mark() ;
goto to;
}
else if(i==5)
{
cout<<"學號 姓名 性別 宿舍號碼 電話號碼"<<endl;
a.display() ;
cout<<endl;
cout<<"學號 課程編號 課程名稱 學分 平時成績 實驗成績 卷面成績 綜合成績 實得學分"<<endl;
b.display() ;
goto to;
}
return 0;
}
uj5u.com熱心網友回復:
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/45968.html
標籤:C++ 語言
上一篇:萌新求幫忙
下一篇:校運動會管理系統
