1 / 16
文档名称:

#运动会计分1.doc

格式:doc   大小:138KB   页数:16页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

#运动会计分1.doc

上传人:guoxiachuanyue002 2021/8/1 文件大小:138 KB

下载得到文件列表

#运动会计分1.doc

相关文档

文档介绍

文档介绍:: .
#include<>
#include<> #include<> #include<> #include<> #include<> #include<> #include<> typedef struct Department // 系的结构 {
char name[20] 。 // 系的名称
int number 。 // 系的编号
int boy 。 // 男子团体总分
int girl 。 // 女子团体总分
Department *next 。 }Department 。 typedef struct Sport // 运动项目结构
{
char name[20] 。
// 运动项目名称
int isboy 。
//0 为女项目 ,1 为男项目
int is3 。
//0 为取前五名 ,1 为取前五名
int number 。
// 项目编号
int first 。
// 第一名系的编号
int second 。
// 第二名系的编号
int third 。
// 第三名系的编号
int fourth 。
// 第四名系的编号
int fifth 。
// 第五名系的编号
Sport *next 。
}Sport 。
int getint(int a>
// 字符转换成数字
{
return (int>(a-'0'> 。
}
Department * head1 。
// 启动画面函数
void Cover(>
{ system("color 1b"> 。
char line[]={" 程序读取中 请耐心等待 ..."} 。
char bar[]={" "} 。
int i,j,k=0,x=0,y=0 。
for(i=0 。 i<=strlen(line>/2 。 >
{
system("cls"> 。
for(j=0 。 j<9。 j++> // 改变行坐标
cout<<endl 。
for(j=0 。 j<(75-strlen(line>>/2 。 j++> // 改变列坐标 cout<<" " 。
for(j=1 。 j<=i 。 j++> // 进度显示器 cout<<" • "。
for(x=strlen(line>/2 。 x>i 。 x--> cout<<" O"。
if(k==4> i++ 。
cout<<endl 。
for(j=0 。 j<(75-strlen(line>>/2 。 j++> // 行坐标定位
cout<<" " 。
cout<<line 。 //输出线条
cout<<endl 。
for(j=0 。 j<(65-strlen(bar>>/2 。 j++>
cout<<" " 。
cout<<(i+7>*5<<"% Loading" 。 (bar,k> 。
cout<<endl 。
for(j=0 。 j<10 。 j++> cout<<endl 。
for(j=0 。 j<24 。 j++>
cout<<" " 。
cout<<" 程序设计员 :文专计 0811张庆龙 孙晋芳 朱明 "<<endl 。 for(j=0 。 j<24 。 j++>
cout<<" " 。
for(j=0 。 j<=18 。 j++>
cout<<"—"。
cout<<endl 。
for(j=0 。 j<10000000 。 j++> 。 //延时效果 k++ 。
if(k>4>
k=0 。
}
}
void department_add(> // 添加系
{
Department * p 。
int mark=0 。
p=new Department 。
cout<<" 请输入系的名称 :"。
cin>>p->name 。
char c。
while (mark!=1>
{
# / 17
cout<<" 请输入系的编号 :" 。
cin>>c 。
if (!isdigit(c>>// 是否为数字
{
cout<<" 数据非法 "<<endl 。
}
else
{
mark=1 。 p->number=c 。
}
}
p->boy=0 。
p->girl=0 。 p->next=head1->next 。 h