歌手比赛系统C语言代码.docx
《歌手比赛系统C语言代码.docx》由会员分享,可在线阅读,更多相关《歌手比赛系统C语言代码.docx(8页珍藏版)》请在三一办公上搜索。
1、歌手比赛系统C语言代码#include<stdio.h> #include<stdlib.h> #include<time.h> #include<string.h> #define N 5 #define M 10 int add = N-1; int sumN=0,MaxN,MinN; float averN;struct player int num; char name8; int scoreM; ; void Inistplayer(struct player a,int n) int i; printf(请输入歌手信息:);for(i=0;i<n
2、;i+) scanf(%d %s,&ai.num,&ai.name); void Inputscore(struct player *p,int n) int i; for(i=0;i<n;i+) printf(请第%d位评委打分:,i+1);scanf(%d,p->scorei); void sort(struct player a,float b,int n) int i,k,j,t; float temp; char str8; for(i=0;i<n;i+) k=i; for(j=i+1;j<n;j+) if(bk>bj) k=j; if(k!=i)temp=bi;
3、 bi=bk; bk=temp; strcpy(str,ai.name); strcpy(ai.name,ak.name); strcpy(ak.name,str); t=ai.num; ai.num=ak.num; ak.num=t; void main int flag=1,n,i,m,j;struct player a20;FILE *fp; fp = fopen(data.txt,w+); printf(nnnntt*歌手比赛系统*tn);printf(tt * 1. 输入选手基本信息 n);printf(tt * 2. 评委打分 n);printf(tt * 3. 歌手成绩显示 n)
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 歌手 比赛 系统 语言 代码

链接地址:https://www.31ppt.com/p-3602602.html