真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

C++課程設(shè)計(jì)之運(yùn)動(dòng)會(huì)管理系統(tǒng)

本文實(shí)例為大家分享了C++運(yùn)動(dòng)會(huì)管理系統(tǒng)的實(shí)現(xiàn)代碼,供大家參考,具體內(nèi)容如下

成都創(chuàng)新互聯(lián)成都網(wǎng)站建設(shè)按需規(guī)劃網(wǎng)站,是成都網(wǎng)站建設(shè)公司,為衛(wèi)生間隔斷提供網(wǎng)站建設(shè)服務(wù),有成熟的網(wǎng)站定制合作流程,提供網(wǎng)站定制設(shè)計(jì)服務(wù):原型圖制作、網(wǎng)站創(chuàng)意設(shè)計(jì)、前端HTML5制作、后臺(tái)程序開發(fā)等。成都網(wǎng)站推廣熱線:028-86922220

#include 
#define MAX 10 
#include 
#include "fstream.h" 
int n,m,w; 
class gamescore 
{public: 
int academynum;     //院系編號(hào) 
int score[MAX][MAX];   //記錄成績(jī)的2維數(shù)組 
int totalscore[MAX];   //院總分存儲(chǔ)數(shù)組 
int mentotalscore[MAX]; //男團(tuán)總分存儲(chǔ)數(shù)組 
int womentotalscore[MAX];//女團(tuán)總分存儲(chǔ)數(shù)組 
int projectnum;     //項(xiàng)目編號(hào) 
  gamescore() 
  { 
    academynum=0; 
    projectnum=0;  
  } 
  void search(int academynum,int projectnum); 
  void remove(int academynum,int projectnum); 
  void repair(int academynum,int projectnum); 
  void save();     //保存成績(jī) 
  void input(); 
  void sort1();     //按院總分排序 
  void sort2();     //按男團(tuán)總分排序 
  void sort3();     //按女團(tuán)總分排序 
  void hold();     //存儲(chǔ)總分?jǐn)?shù) 
  int academytotalscore(int academynum);    //院總分 
  int academywomentotalscore(int academynum); //院女團(tuán)總分 
  int academymentotalscore(int academynum);  //院男團(tuán)總分 
  void output1(int academy);          //輸出院系的成績(jī)列表   
  void output2(int academynum);        //輸出院系的團(tuán)體成績(jī)列表 
}; 
void gamescore::input() 
{  int i,j; 
  for(i=0;i>score[i][j]; 
         if(score[i][j]!=0&&score[i][j]!=2&&score[i][j]!=5&&score[i][j]!=10) 
         { 
           cout<<"成績(jī)輸入錯(cuò)誤,請(qǐng)檢查后再輸入"<>score[i][j]; 
         } 
       } 
     } 
  if(i=n-1) cout<<"!!輸入完畢"<>k; 
  if(k<0||k>5)  //判斷輸入的操作編號(hào)是否在目錄中,如果超出范圍重新輸入 
     { 
       cout<<"輸入有誤,請(qǐng)重新輸入要操作的項(xiàng)目編號(hào)"; 
       cin>>k; 
     }    
    switch(k) 
     { 
     case 1:  
       cout<<"編號(hào)為"<>score[academynum-1][projectnum-1]; 
  cout<<"修改成功"<>num; 
     if(num>10||num<0)   
     { 
       cout<<"輸入有誤,請(qǐng)重新輸入要操作的項(xiàng)目編號(hào):"; 
       cin>>num; 
     }       
     switch(num) 
     { 
     case 1:      
       a.input(); 
       break; 
     case 2: 
       cout<<"輸入要查找的院系:"; 
       cin>>academynum; 
       cout<<"輸入要查詢的運(yùn)動(dòng)項(xiàng)目編號(hào):"; 
       cin>>projectnum; 
      a.search(academynum,projectnum); 
       break; 
     case 3:  
       cout<<"輸入要修改的院系編號(hào)"; 
       cin>>academynum; 
       cout<<"輸入要修改的運(yùn)動(dòng)項(xiàng)目的編號(hào):"; 
       cin>>projectnum; 
       a.repair(academynum,projectnum); 
       break; 
     case 4: 
       cout<<"輸入要?jiǎng)h除成績(jī)所在的院系的編號(hào):"; 
       cin>>academynum;  
       cout<<"輸入要?jiǎng)h除運(yùn)動(dòng)項(xiàng)目編號(hào):"; 
       cin>>projectnum; 
       a.remove(academynum,projectnum); 
       break; 
     case 5: 
       cout<<"輸入要查詢成績(jī)的院系編號(hào):"; 
       cin>>academynum; 
       a.output1(academynum); 
       break; 
     case 6: 
       cout<<"輸入要查詢團(tuán)體成績(jī)的院系的編號(hào):"; 
       cin>>academynum; 
       a.output2(academynum); 
       break; 
     case 7: 
        cout<<"該學(xué)院運(yùn)動(dòng)項(xiàng)目編號(hào)及對(duì)應(yīng)學(xué)院總分的成績(jī)?nèi)缦?"; 
        a.hold(); 
        a.sort1();break; 
     case 8: 
        cout<<"該學(xué)院運(yùn)動(dòng)項(xiàng)目編號(hào)及對(duì)應(yīng)男團(tuán)的成績(jī)?nèi)缦?"; 
        a.hold(); 
        a.sort2();break; 
     case 9: 
        cout<<"該學(xué)院運(yùn)動(dòng)項(xiàng)目編號(hào)及對(duì)應(yīng)女團(tuán)的成績(jī)?nèi)缦?"; 
        a.hold(); 
        a.sort3();break; 
     case 10: 
       a.save(); 
       cout<<"!!保存成功"<

以上就是本文的全部?jī)?nèi)容,希望對(duì)大家的學(xué)習(xí)有所幫助,也希望大家多多支持創(chuàng)新互聯(lián)。


當(dāng)前文章:C++課程設(shè)計(jì)之運(yùn)動(dòng)會(huì)管理系統(tǒng)
鏈接分享:http://weahome.cn/article/ppicgp.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部