下载此文档

#运动会计分1.doc


文档分类:中学教育 | 页数:约16页 举报非法文档有奖
1/16
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/16 下载此文档
文档列表 文档介绍
: .
#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

#运动会计分1 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
最近更新