❶ 綜合運動會球類項目如何計團體分數
奧運會設有棒球、排球、籃球、足球、曲棍球、手球、羽毛球、壘球、網球、內乒乓球、冰球等球類項目。容
根據國際奧委會的資料,奧運會比賽項目是這樣劃分的:大項(SPORT)、分項(DISCIPLINES)和小項(EVENT)。
與雅典奧運會一樣,北京奧運會的比賽項目是大項28項,這28項為:田徑、賽艇、羽毛球、壘球、籃球、足球、拳擊、皮劃艇、自行車、擊劍、體操、舉重、手球、曲棍球、柔道、摔跤、水上項目、現代五項、棒球、馬術、跆拳道、網球、乒乓球、射擊、射箭、鐵人三項、帆船帆板和排球。
其中有些項目並沒有分項,夏季奧運會分項最多的是游泳項目(包括了競技游泳、花樣游泳、水球、跳水和公開水域游泳5個分項),冬季奧運會分項最多的是滑雪項目(包括越野滑雪、高山滑雪、跳台滑雪、北歐兩項、自由式滑雪和單板滑雪6個分項)。田徑雖然沒有分項,卻有47個小項,其中男子24個小項,女子23個小項,是奧運會項目中金牌最多的。
2012倫敦奧運會奧組委將棒球、壘球兩項的比賽取消了。
❷ 課題一 運動會分數統計
#include <malloc.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <conio.h>
#define NULL 0
# define N 4
# define M 3
# define W 2
struct match_data
{int Range; /*paiming*/
char name[20];
int Score; /*defen*/
}match_data[M+W];
struct school_data
{struct match_data match_data[M+W];
int m_Score; /*nan yundongyuan defen*/
int w_Score; /*nv yundongyuan defen*/
int total_Score; /*zongfen*/
}school_data[N];
Waring_message()
{
printf ("\n Wrong input value! Please try again.\n");
}
input_1(m)
{
int i,j,k,T=1;
for(i=1,k=7;i<=3;i++,k-=2)
{printf ("\n NO.%d : %d points.",i,k);
while(T)
{printf ("\n\n School number: (1--%d)",N);
scanf ("%d",&j);
if ((j>0)&&(j<=N)) T=0;
else { Waring_message();T=1;}
}
printf ("\n Please input the athlete's name:");
scanf ("%s",&school_data[j-1].match_data[m-1].name);
if (m<=M) school_data[j-1].m_Score+=k;
else school_data[j-1].w_Score+=k;
school_data[j-1].total_Score+=k;
school_data[j-1].match_data[m-1].Range=i;
school_data[j-1].match_data[m-1].Score=k;
T=1;
}
for(i=4,k=2;i<=5;i++,k-=1)
{printf ("\n NO.%d : %d points",i,k);
while(T)
{printf ("\n\n School number: (1--%d)",N);
scanf ("%d",&j);
if ((j>0)&&(j<=N)) T=0;
else { Waring_message();T=1;}
}
printf ("\n The athlete's name:");
scanf ("%s",&school_data[j-1].match_data[m-1].name);
if (m<=M) school_data[j-1].m_Score+=k;
else school_data[j-1].w_Score+=k;
school_data[j-1].total_Score+=k;
school_data[j-1].match_data[m-1].Range=i;
school_data[j-1].match_data[m-1].Score=k;
T=1;
}
}
input_2(m)
{int i,j,k=5; int T=1;
printf ("\n NO.1 : 5 points");
while(T)
{printf ("\n\n School number: (1--%d)",N);
scanf ("%d",&j);
if ((j>0)&&(j<=N)) T=0;
else { Waring_message();T=1;}
}
printf ("\n The athlete's name:");
scanf ("%s",&school_data[j-1].match_data[m-1].name);
if (m<=M) school_data[j-1].m_Score+=k;
else school_data[j-1].w_Score+=k;
school_data[j-1].total_Score+=k;
school_data[j-1].match_data[m-1].Range=1;
school_data[j-1].match_data[m-1].Score=k;
for(i=2,k=3;i<=3;i++,k-=1)
{T=1;
printf ("\n NO.%d : %d points",i,k);
while(T)
{printf ("\n\n School number: (1--%d)",N);
scanf ("%d",&j);
if ((j>0)&&(j<=N)) T=0;
else { Waring_message();T=1;}
}
printf ("\n The athlete's name:");
scanf ("%s",&school_data[j-1].match_data[m-1].name);
if (m<=M) school_data[j-1].m_Score+=k;
else school_data[j-1].w_Score+=k;
school_data[j-1].total_Score+=k;
school_data[j-1].match_data[m-1].Range=i;
school_data[j-1].match_data[m-1].Score=k;
}
}
input_3(m)
{int i,j,k,T,Q,S=1;
for(i=1,T=1;T==1;i++)
{printf ("\n NO.%d\n points:",i);
scanf ("%d",&k);
while(S)
{printf ("\n School number: (1--%d)",N);
scanf ("%d",&j);
if ((j>0)&&(j<=N)) S=0;
else { Waring_message();S=1;}
}
printf ("\n The athlete's name:");
scanf ("%s",&school_data[j-1].match_data[m-1].name);
if (m<=M) school_data[j-1].m_Score+=k;
else school_data[j-1].w_Score+=k;
school_data[j-1].total_Score+=k;
school_data[j-1].match_data[m-1].Range=i;
school_data[j-1].match_data[m-1].Score=k;
printf ("\n Continue?\n key 0:yes\n key 1-9:end\n");
scanf ("%d",&Q);
T=(Q==0);
S=1;
}
}
input()
{
int i,T=1;
while(T)
{printf ("\n Please input the number of the game: (1--%d)",M+W);
scanf ("%d",&i);
if ((i>0)&&(i<=M+W)) T=0;
else {Waring_message(); T=1;}
}
return (i);
}
output_1()
{
int n,m,T=1;
while (T)
{printf ("\n Please input the school number: (1--%d)",N);
scanf ("%d",&m);
if ((m>0)&&(m<=N)) T=0;
else { Waring_message(); T=1;}
}
printf ("\n Data of school %d:",m);
printf ("\n **************************************************************");
printf ("\n Item NO. Range Score NAME");
for (n=1;n<=(M+W);n++)
{printf ("\n\n %d %d",n,school_data[m-1].match_data[n-1].Range);
printf (" %d",school_data[m-1].match_data[n-1].Score);
printf (" %s",school_data[m-1].match_data[n-1].name);
}
printf ("\n **************************************************************\n");
}
output_2()
{int m,T=1;
while (T)
{printf ("\n Please input the school number:(1--%d)",N);
scanf ("%d",&m);
if ((m>0)&&(m<=N)) T=0;
else { Waring_message();T=1;}
}
printf ("\n Team data of school %d",m);
printf ("\n ****************************************************************");
printf ("\n M_Score W_Score TOTAL_Score");
printf ("\n\n %d",school_data[m-1].m_Score);
printf (" %d",school_data[m-1].w_Score);
printf (" %d",school_data[m-1].total_Score);
printf ("\n ****************************************************************\n");
}
main()
{
clrscr();
int s,m,T=1;
while(T)
{
m=input();
printf ("\n Please input the game type: ");
printf ("\n 0 : Type1");
printf ("\n 1 : Type2");
printf ("\n 2--9:user-defined\n");
scanf ("%d",&s);
if (s==0) input_1(m);
else if (s==1) input_2(m);
else input_3(m);
printf ("\n Press key 0 to continue input.\n key 1--9 to view data.");
scanf ("%d",&s);
if(s==0) T=1;
else T=0;
}
T=1;
while(T)
{printf ("\n key 0 : View school's game data.");
printf ("\n key 1 : View school's team data.");
printf ("\n key 2--9: End the programe.");
scanf ("%d",&s);
if(s==0) output_1();
else if(s==1) output_2();
else {T=0; printf (" Thanks, goodbye!\n");}
}
}
❸ 怎麼做田徑運動會記分表
1、根據工作表格設置成以下格式即可;
2、成績報告表示例:
❹ 運動會分數統計
你想問什麼問題
❺ 1. ②運動會分數統計
參加運動會的N個同學編號為1~N。比賽分成M個男子項目和W個女子項目項目編號分別為回1~答M和M+1~M+W。由於各項目加入人數差別較大,有些項目取前5名得分順序為7 5 3 2 1,有些項目取前3名順序為5 3 2,寫一個統計程序產生各種成績單和成績報表。要求⑴學校成績單的內容包括各校取得的每項成績的項目號,名次(成績),姓名和得分⑵產生團體總分表,內容包括校號 男子團體總分 女子團體總分和團體總分。(測試數據:對於N=4,M=3,W=2編號為奇數的項目取前5名,偶數的取前3名,設計一組實例數據。提示:可以假設N《=20,M〈=30,W〈=20,姓名長度不超過20個字元,每個項目結束時,將其編號,類型符(區分前5名還是千名)輸入,並按名次順序輸入運動員的姓名,校名和成績。
❻ C語言運動會項目成績統計程序
#include<iostream>
#include <algorithm>
#include<vector>
#include<string>
#include<fstream>
#include<stdlib.h>
using namespace std;struct player
{
string sex;
int score;
//school playerschool;
};
struct school
{
int ID;
int score;
player girl;
player boy;
};
struct match
{
int number;
int score;
school sch[100];
bool Isthree;
};
bool cmp(school &q,school &p)
{
return q.score<p.score;
}
bool cmp1(school &q,school &p)
{
return q.boy.score<p.boy.score;}
bool cmp2(school &q,school &p)
{
return q.girl.score<p.girl.score;
}
void save2(school *q,int n)
{
string b;
cin>>b;
int i;
ofstream fout(b.c_str());
for (i=1;i<=n;i++)
fout<<q[i].score<<endl;
}
void save6(int total,int temp,match *p,int kq)
{
string b;
cin>>b;
//int i;
ofstream fout(b.c_str());
fout<<total<<"號學校在第"<<temp<<"次比賽中積分為:"<<endl;
fout<<p[temp].sch[kq].score<<endl;
}
void save3(match *p,int n,int temp)
{
string b;
int i;
cin>>b;
ofstream fout(b.c_str());
if (p[temp].Isthree)
for (i=1;i<=3;i++)
{
fout<<"第【"<<i<<"】名學校編號為:"<<p[temp].sch[i].ID<<endl;
fout<<"得分: "<<p[temp].sch[i].score<<endl<<endl;
}
else
for (i=1;i<=5;i++)
{
fout<<"第【"<<i<<"】名學校編號為:"<<p[temp].sch[i].ID<<endl;
fout<<"得分: "<<p[temp].sch[i].score<<endl<<endl;
}}
int main()
{
int n,m,r,w,N;
bool BB=false;
int flag,lex;
char c;
int temp;
int total;
int bisai,schoo;
system("color 4F");cout<<"\t\t------------------------------------"<<endl;
cout<<"\t\t\t***********************"<<endl;
printf ("\t\t\t 運動會成績統計系統\t\n");
cout<<"\t\t\t***********************"<<endl;
cout<<"\t\t------------------------------------"<<endl<<endl<<endl;
getchar();
system("cls");
cout<<" 請輸入學校數目"<<endl;
cin>>n;
system("cls");
cout<<"請輸入男生比賽項目數"<<endl;
cin>>m;
system("cls");
cout<<"請輸入女生比賽項目數"<<endl;
cin>>w;
system("cls");
match *p=new match[m+1+w];
school *q=new school[n+1];
match *pp;
school *qq;
for (int i=1;i<=n;i++)
{
q[i].boy.score=0;
q[i].girl.score=0;
q[i].score=0;
q[i].ID=i;
}
for (i=1;i<=m+w;i++)
for (int j=1;j<=n;j++)
{
p[i].sch[j].score=0;
p[i].sch[1].ID=-1;
}system("cls");
loop:
system("cls");
cout<<"\t\t\t\t主界面:"<<endl;
cout<<"1: 開始錄入成績...."<<endl<<endl;
cout<<"2: 按學校編號排序輸出"<<endl<<endl;
cout<<"3: 按學校總分排序輸出"<<endl<<endl;
cout<<"4: 按男生團體總分排序輸出"<<endl<<endl;
cout<<"5: 按女生團體總分排序輸出"<<endl<<endl;
cout<<"6: 按學校編號查詢指定項目得分情況"<<endl<<endl;
cout<<"7: 查詢某一項目所參與學校的得分情況"<<endl<<endl;
cout<<"8: 操作完畢... 退出系統"<<endl;
cin>>flag;
if (flag==1)
{
system("cls");
//freopen("match.txt","r",stdin);
ifstream fin("match.txt");
while (fin>>bisai>>lex)
{
if (lex==3)
p[bisai].Isthree=true;
else p[bisai].Isthree=false; }
fin.close();
ifstream tin("school.txt");
while (tin>>bisai)
{
if (p[bisai].Isthree)
{
for (i=1;i<=3;i++)
{
tin>>schoo;
p[bisai].sch[i].ID=schoo;
//p[bisai].sch[]=scho;
if (i==1)
{
q[schoo].score+=5;
if (bisai>m)
q[schoo].girl.score+=5;
else
q[schoo].boy.score+=5;
p[bisai].sch[i].score=5;
}
else if (i==2)
{
q[schoo].score+=3;
if (bisai>m)
q[schoo].girl.score+=3;
else
q[schoo].boy.score+=3;
p[bisai].sch[i].score=3;
}
else
{
q[schoo].score+=2;
if (bisai>m)
q[schoo].girl.score+=2;
else
q[schoo].boy.score+=2;
p[bisai].sch[i].score=2;
}
}
}
else
{
for (i=1;i<=5;i++)
{
tin>>schoo;
p[bisai].sch[i].ID=schoo;
//p[bisai].sch[]=scho;
if (i==1)
{
q[schoo].score+=7;
if (bisai>m)
q[schoo].girl.score+=7;
else
q[schoo].boy.score+=7;
p[bisai].sch[i].score=7;
}
else if (i==2)
{
q[schoo].score+=5;
if (bisai>m)
q[schoo].girl.score+=5;
else
q[schoo].boy.score+=5;
p[bisai].sch[i].score=5;
} else if (i==3)
{
q[schoo].score+=3;
if (bisai>m)
q[schoo].girl.score+=3;
else
q[schoo].boy.score+=3;
p[bisai].sch[i].score=3;
}
else if (i==4)
{
q[schoo].score+=2;
if (bisai>m)
q[schoo].girl.score+=2;
else
q[schoo].boy.score+=2;
p[bisai].sch[i].score=2;
}
else
{
q[schoo].score+=1;
if (bisai>m)
q[schoo].girl.score+=1;
else
q[schoo].boy.score+=1;
p[bisai].sch[i].score=1;
}
}
} }
//cout<<q[5].boy.score<<endl;
cout<<"\t\t\t成績錄入完畢...."<<endl<<endl;
tin.close();
cout<<"跳回主界面 Y/N?"<<endl;
pp=p;
qq=q;
cin>>c;
if (c=='Y'||c=='y')
goto loop;
else return 0;
//else return 0;
}
else if (flag==2)
{
system("cls");
cout<<"\t\t 【按學校編號排列】"<<endl;
for (i=1;i<=n;i++)
cout<<q[i].score<<endl;
cout<<"顯示完畢"<<endl;
cout<<"\t\t\t 是否將文件保存Y/N??"<<endl;
cin>>c;
system("cls");
if (c=='y'||c=='Y')
{
cout<<"\t\t\t*******請輸入要保存到的文件名******"<<endl;
save2(q,n);
}
cout<<"跳回主界面 Y/N?"<<endl;
cin>>c;
if (c=='Y'||c=='y')
goto loop;
else return 0; //getchar();
//goto loop;
}
else if (flag==3)
{
q=qq;
sort(q+1,q+n+1,cmp);
system("cls");
cout<<"\t\t【學校總分按小到大排列】"<<endl;
cout<<"ID"<<" "<<"score"<<endl;
for (i=1;i<=n;i++)
cout<<q[i].ID<<" "<<q[i].score<<endl;
cout<<"顯示完畢"<<endl;
cout<<"\t\t\t 是否將文件保存Y/N??"<<endl;
cin>>c;
system("cls");
if (c=='y'||c=='Y')
{
cout<<"\t\t\t*******請輸入要保存到的文件名******"<<endl;
save2(q,n); }
goto loop;
/*cout<<"跳回主界面 Y/N?"<<endl;
cin>>c;
if (c=='Y'||c=='y')
else return 0;*/
}
else if (flag==4)
{
q=qq;
sort(q+1,q+n+1,cmp1);
system("cls");
cout<<"\t\t按男生團體總分排名"<<endl<<endl;
cout<<"ID "<<"SCORE"<<endl;
for (i=1;i<=n;i++)
cout<<q[i].ID<<" "<<q[i].boy.score<<endl; cout<<"\t\t\t 是否將文件保存Y/N??"<<endl;
cin>>c;
system("cls");
if (c=='y'||c=='Y')
{
cout<<"\t\t\t*******請輸入要保存到的文件名******"<<endl;
save2(q,n);
}
//cout<<"跳回主界面....";
// getchar();
goto loop;
}
else if (flag==5)
{
q=qq;
sort(q+1,q+n+1,cmp2);
system("cls");
cout<<"\t\t按女生團體總分排名"<<endl<<endl;
cout<<"ID "<<"SCORE"<<endl;
for (i=1;i<=n;i++)
cout<<q[i].ID<<" "<<q[i].girl.score<<endl;
cout<<"\t\t\t 是否將文件保存Y/N??"<<endl;
cin>>c;
system("cls");
if (c=='y'||c=='Y')
{
cout<<"\t\t\t*******請輸入要保存到的文件名******"<<endl;
save2(q,n);
}
// cout<<"跳回主界面...";
// getchar();
goto loop;
}
else if (flag==6)
{
int temp;
int total;
cout<<"\t\t\t請輸入要查詢的學校編號"<<endl;
cin>>total;
cout<<endl;
cout<<"\t\t\t請輸入指定比賽項目編號"<<endl;
cin>>temp;
cout<<endl;
for (i=1;;i++)
if(p[temp].sch[i].ID==total)
break;
cout<<total<<"號學校在第"<<temp<<"次比賽中積分為:"<<endl;
cout<<p[temp].sch[i].score<<endl; cout<<"\t\t\t 是否將文件保存Y/N??"<<endl;
cin>>c;
if (c=='y'||c=='Y')
{
cout<<"\t\t\t*******請輸入要保存到的文件名******"<<endl;
save6(total,temp,p,i);
}
// cout<<"跳回主界面....";
// getchar();
goto loop;
}
else if (flag==7) {
system("cls");
loop45:
cout<<"\t\t輸入比賽編號"<<endl;
cin>>temp;
cout<<endl; if (p[temp].Isthree)
for (i=1;i<=3;i++)
{
if (p[temp].sch[i].ID==-1)
{
cout<<"\t\t該比賽項目沒有學校參與"<<endl;
cout<<"\t\t重新選擇...."<<endl;
goto loop45;
}
cout<<"第【"<<i<<"】名學校編號為:"<<p[temp].sch[i].ID<<endl;
cout<<"得分: "<<p[temp].sch[i].score<<endl<<endl;
}
else
for (i=1;i<=5;i++)
{
cout<<"第【"<<i<<"】名學校編號為:"<<p[temp].sch[i].ID<<endl;
cout<<"得分: "<<p[temp].sch[i].score<<endl<<endl;
}
cout<<"\t\t\t 是否將文件保存Y/N??"<<endl;
cin>>c;
system("cls");
if (c=='y'||c=='Y')
{
cout<<"\t\t\t*******請輸入要保存到的文件名******"<<endl;
save3(p,n,temp);
}
// cout<<"跳回主界面....";
// getchar();
goto loop;
}
else
{
system("cls");
cout<<"\t\t謝謝使用...."<<endl;
return 0;
}
return 0;
}
❼ 運動會分數統計程序
用Microsoft Office Excel 自己編輯一個就OK了
❽ 運動會自己報了那些項目,成績怎麼樣
運動會自己報了那些項目,成績怎麼樣
比賽項目包括田徑、游泳、籃球、排版球、權足球、乒乓球、健美操、武術、定向越野、毽球、跆拳道、橋牌十二個比賽項目,往屆比賽還有兩項,五項,六項的,基本包括田徑、游泳、足球。成績要看你發揮的怎樣了
❾ 1、 運動會分數統計
看來沒人會來答這個題了.