C语言课程设计~~~ 要求编写一段程序,题目是《校际运动会管理系统》

C语言课程设计~~~ 要求编写一段程序,题目是《校际运动会管理系统》,第1张

我这是源代码已经调试过了,在VC++上运行成功了。

#include "stdioh" /I/O函数/

#include "stdlibh" /其它说明/

#include "stringh" /字符串函数/

#include "conioh" /屏幕 *** 作函数/

#include "memh" /内存 *** 作函数/

#include "ctypeh" /字符 *** 作函数/

#include "alloch" /动态地址分配函数/

struct score

{

int mingci;

char xuehao[8];

char mingzi[20];

float score[6];

}data,info[1000];

int i,j,k=0;

char temp[20],ch;

FILE fp,fp1;

void shuru()

{

if((fp=fopen("s_scoretxt","ab+"))==NULL)

{

printf("cannot open this file\n");

getch();exit(0);

}

for(i=0;i<=1000;i++)

{

printf("\nPlease shuru xuehao:");

gets(dataxuehao);

printf("Please shuru mingzi:");

gets(datamingzi);

printf("Please shuru yuwen score:");

gets(temp);datascore[0]=atof(temp);

printf("Please shuru shuxue score:");

gets(temp);datascore[1]=atof(temp);

printf("Please input yingyu score:");

gets(temp);datascore[2]=atof(temp);

printf("Please shuru wuli score:");

gets(temp);datascore[3]=atof(temp);

printf("Please shur huaxue score:");

gets(temp);datascore[4]=atof(temp);

datascore[5]=datascore[0]+datascore[1]+datascore[2]+datascore[3]+datascore[4];

fwrite(&data,sizeof(data),1,fp);

printf("anothery/n");

ch=getch();

if(ch=='n'||ch=='N')

break;

} fclose(fp);

}

void xianshi()

{

float s;int n;

if((fp=fopen("s_scoretxt","rb+"))==NULL)

{

printf("Cannot reading this file\n");

exit(0);

}

for(i=0;i<=1000;i++)

{

if((fread(&info[i],sizeof(info[i]),1,fp))!=1)

break;

}

printf("\nxuehao mingzi yuwen shuxue yingyu wuli huauxue zhongfen\n");

for(j=0,k=1;j<i;j++,k++)

{

info[j]mingci=k;

printf("%6s %8s %31f %31f %31f %31f %31f %31f\n",info[j]xuehao,info[j]mingzi,info[j]score[0],info[j]score[1],info[j]score[2],info[j]score[3],info[j]score[4],

info[j]score[5]);

}

getch();

fclose(fp);

}

void xiugai()

{

if((fp=fopen("s_scoretxt","rb+"))==NULL||(fp1=fopen("temptxt","wb+"))==NULL)

{

printf("Cannot open this file\n");

exit(0);

}

printf("\nPLease shuru xiugai xuehao:");

scanf("%d",&i); getchar();

while((fread(&data,sizeof(data),1,fp))==1)

{

j=atoi(dataxuehao);

if(j==i)

{

printf("xuehao:%s\nmingzi:%s\n",dataxuehao,datamingzi);

printf("Please shuru mingzi:");

gets(datamingzi);

printf("Please shuru yuwen score:");

gets(temp);datascore[0]=atof(temp);

printf("Please shuru shuxue score:");

gets(temp);datascore[1]=atof(temp);

printf("Please input yingyu score:");

gets(temp);datascore[2]=atof(temp);

printf("Please input wuli score:");

gets(temp);datascore[3]=atof(temp);

printf("Please input huaxue score:");

gets(temp);datascore[4]=atof(temp);

datascore[5]=datascore[0]+datascore[1]+datascore[2]+datascore[3]+datascore[4];

} fwrite(&data,sizeof(data),1,fp1);

}

fseek(fp,0L,0);

fseek(fp1,0L,0);

while((fread(&data,sizeof(data),1,fp1))==1)

{

fwrite(&data,sizeof(data),1,fp);

}

fclose(fp);

fclose(fp1);

}

void chazhao()

{

if((fp=fopen("s_scoretxt","rb"))==NULL)

{

printf("\nCannot open this file\n");

exit(0);

}

printf("\nPLease shuru xuehao chakan:");

scanf("%d",&i);

while(fread(&data,sizeof(data),1,fp)==1)

{

j=atoi(dataxuehao);

if(i==j)

{

printf("xuehao:%s mingzi:%s\nyuwen:%f\n shuxue:%f\n yingyu:%f\n wuli:%f\n huaxue:%f\n ",dataxuehao,datamingzi,datascore[0],datascore[1],datascore[2],datascore[3],datascore[4],datascore[5]);

}getch();

}

}

void shanchu()

{

if((fp=fopen("s_scoretxt","rb+"))==NULL||(fp1=fopen("temptxt","wb+"))==NULL)

{

printf("\nopen scoretxt was failed!");

getch();

exit(0);

}

printf("\nPlease input ID which you want to del:");

scanf("%d",&i);getchar();

while((fread(&data,sizeof(data),1,fp))==1)

{

j=atoi(dataxuehao);

if(j==i)

{

printf("Anykey will delet it\n");

getch();

continue;

}

fwrite(&data,sizeof(data),1,fp1);

}

fclose(fp);

fclose(fp1);

remove("s_scoretxt");

rename("temptxt","s_scoretxt");

printf("Data delet was succesful!\n");

printf("Anykey will return to main");

getch();

}

main()

{

while(1)

{

clrscr(); /清屏幕/

gotoxy(1,1); /移动光标/

textcolor(YELLOW); /设置文本显示颜色为**/

textbackground(BLUE); /设置背景颜色为蓝色/

window(1,1,99,99); / 制作显示菜单的窗口,大小根据菜单条数设计/

clrscr();

printf("welcome to use student manage\n");

printf("menu\n");

printf(" ========================================================= \n");

printf(" 1>shuru 2>xiugai \n");

printf(" 3>shanchu 4>chazhao \n");

printf(" 5>xianshi 6>exit \n");

printf(" \n");

printf(" --------------------------------------------------------- \n");

printf(" Please input which you want(1-6):");

ch=getch();

switch(ch)

{

case '1':shuru();break;

case '2':xiugai(); break;

case '3':shanchu(); break;

case '4':chazhao(); break;

case '5':xianshi(); break;

case '6':exit(0);

default: continue;

}

}

据说己经被埋藏在地下超过一千年了,这次是由英国皇室联系的专业人手,并且将用足够强的高科技产品来进行发掘工作!进攻方设计中的下底突破或者传中没有能成功,

署 : ued42 C Ο Μ有你要的

这个是无法破解的,因为这个属于硬件加密,一般软件是没有办法破解的。不过你可以通过重新写入加密的密钥,让系统重新学习加密。这样的话,就可以解开这个加密的密码。但是,这样 *** 作之后,你的系统就不再是最新版本,可能会影响使用。所以,如果不是很重要的话,不建议进行破解。

如果你觉得这个对你很重要的话,可以联系售后,看是否可以帮你重新刷入新的系统。

希望可以帮到你。

请问您对该回答满意吗?

/C语言随机抽取幸运观众的完整程序/

#include <stdioh>

#include <timeh>

#include <stdlibh>

#define MAX_COUNT 100

void main()

{

int option = 0;

srand((unsigned)time(NULL));

while(1)

{

printf("\n");

printf("1 产生幸运观众\n2 退出\n");

printf("请输入选项(1~2): ");

scanf("%d", &option);

switch(option)

{

case 1:

printf("幸运观众是: %d 号\n", rand() % MAX_COUNT);

case 2:

exit(0);

}

}

}

#include<stdioh>

#define N 10

void main() { int a[N],i,p;

  for ( i=0;i<N;i++ ) a[i]=i+1;

  p=a; p+=N-1;

  for ( i=0;i<N;i++,p-- ) printf("%d ",p); printf("\n");

}

cbet是一个多义词,有2个方面的意思:

一、CBET指能力本位的教育与培训。

能力本位的教育与培训(Competencybased Education and Training,简称CBET)是一种旨在培养成人某种职业或生活能力的课程模式,它充分吸收并强化了行为主义的一些重要概念如学习、行为目标、绩效评估和反馈等。它强调学习结果而不是学习过程,因而预先明确并约定教学效果,它注重根据绩效标准来评估学习者的学习成果。

二、cbet指持续下注。

cbet,C-Bet,又称continue bet,意思指持续下注、继续下注。指在翻牌、转牌、河牌中每回合都下注。cbet是当玩家在翻牌前作为范围领先者或者进攻者,与范围落后者或者防守者进入翻牌后,对对手持续施压的手段。

翻牌后的C-Bet之所以有效,主要是因为,无论对手还是我们,在翻牌后有大概率会错失翻牌,在双方信息不对等的情况下,占据主动的一方可以通过持续的进攻来有效的拿下底池。

正因为如此,作为进攻的一方,可以利用翻牌前范围上的优势,根据翻牌来进行C-Bet,而作为防守方,因为范围上的劣势,加上错失翻牌的概率,很难抵御进攻方的C-Bet。

C-Bet的下注尺度是近些年变化最大的,玩家逐渐开始考虑到最优的下注策略,在拿价值和诈唬的同时,也在思考如何让价值下注和诈唬间保持平衡。这种趋势随着级别的升高越发明显,玩家可以根据自身的级别来考虑最适合的C-Bet尺度。

(一)continue

音标:

[kənˈtɪnjuː]

释义:

vi维持原状;保持;持续;不间断发生;重新开始;继续;连续不断;持续;继续说;说下去;(沿某一方向)坚持走下去,延伸下去。

vt使继续;坚持;使重新开始;继续;使(诉讼)延期。

双语例句:

1 Please continue

请继续说。

2 I beg your pardon, pray continue

抱歉,请继续。

3 The Cinderella story looks set to continue

这个灰姑娘般的成功故事看上去还会继续。

4 This situation can't be allowed to continue

这种情况不能再任其继续下去了。

5 They'll continue to fight injustice

他们会继续与不公正作斗争。

(二)bet

音标:

[bet]

释义:

n观点;看法;选择。

vt赌;敢说;确信。

双语例句:

1 That's my bet

我是这么看的。

2 After five heads in a row the law of averages makes tails the better bet

连着5次掷到正面之后,依照平均律押反面更有把握。

3 The company does not bet its own money on equities, and so is shielded from market risk

该公司没有把自己的钱押在普通股上,这样就规避了市场风险。

4 I never bet more than a monkey

我下赌注从不超过500英镑。

5 His bet was that the horse would win

他曾预言这匹马会胜出。

以上就是关于C语言课程设计~~~ 要求编写一段程序,题目是《校际运动会管理系统》全部的内容,包括:C语言课程设计~~~ 要求编写一段程序,题目是《校际运动会管理系统》、翻牌机游戏单机版破解、急求一道C语言随机抽取幸运观众的完整程序等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/9858170.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-02
下一篇 2023-05-02

发表评论

登录后才能评论

评论列表(0条)

保存