本文目录一览:
- 1、跪求 INXS -《By My Side 》无损音乐百度云盘下载
- 2、Inxs的《On My Way》 歌词
- 3、输入10个学生5门课的成绩,用c 语言写程序计算出每个学生的平均分,计算每门课的平均分,找出所有五?
- 4、Inxs的《Jumping》 歌词
跪求 INXS -《By My Side 》无损音乐百度云盘下载
链接:
提取码:akh8
INXS 是一支来自澳大利亚的新浪潮摇滚乐队,80年代中期到90年代初期是乐队音乐生涯的黄金期,连续数张专辑都是叫好又叫座。
Inxs的《On My Way》 歌词
歌曲名:On My Way
歌手:Inxs
专辑:Inxs Box Digital Edition
Artist: Phil Collins
Title: On My Way
Tell everybody I'm on my way
New friends and new places to see
With blue skies ahead yes
I'm on my way
And there's nowhere else
that I'd rather be
Tell everybody I'm on my way
And I'm loving every step I take
With the sun beating down yes
I'm on my way
And I can't keep this smile off my face
'Cause there's nothing like seeing
each other again
No matter what the distance between
And the stories that we tell
will make you smile
Oh it really lifts my heart
So tell 'em all I'm on my way
New friends and new places to see
And to sleep under the stars
Who could ask for more
With the moon keeping watch over me
Not the snow, not the rain
Can change my mind
The sun will come out, wait and see
And the feeling of the wind in your face
Can lift your heart
Oh there's nowhere I would rather be
'Cause I'm on my way now-
well and truly
I'm on my way now
(I'm on my way now)
乱来一气
Tell everybody I'm on my way
And I just can't wait to be there
With blue skies ahead yes
I'm on my way
And nothing but good times to share
So tell everybody I'm on my way
And I just can't wait to be home
With the sun beating down yes
I'm on my way
And nothing but good times to show
I'm on my way
Yes, I'm on my way
输入10个学生5门课的成绩,用c 语言写程序计算出每个学生的平均分,计算每门课的平均分,找出所有五?
把问题说全了,找出所有五什么??
10个成绩我测试就不一一输入了,你自己写个循环输入,把两个常量分别改成10和5。
我这边测试就初值了3个学生5门课的数据。
另外,不明白你要哪组数据的方差,方差我预留了函数:
int getVariance(int *nums,int len);//获取一组数组的方差,nums:数组,len:数组长度
根据你自己需要自己调用。
代码如下:
#includestdio.h
#define SN 3//学生人数
#define CN 5//门课数量
float *getSAvg(int stu[][CN]);//学生平均分
float *getCAvg(int stu[][CN]);//每门课平均分
int *getMax(int stu[][CN]);
int getVariance(int *nums,int len);//获取一组数组的方差,nums:数组,len:数组长度
int main()
{
int i,stu[SN][CN]={{99,91,92,93,72},{92,72,83,97,99},{81,82,95,93,89}};
float *cAvgs=NULL,*sAvgs=NULL;
int *inxs=NULL;
sAvgs=getSAvg(stu);
cAvgs=getCAvg(stu);
printf("每个学生平均分分别为:\n");
for(i=0;iSN;i++)
printf("%.1f ",sAvgs[i]);
printf("\n\n每门课的平均分分别为:\n");
for(i=0;iCN;i++)
printf("%.1f ",cAvgs[i]);
printf("\n\n");
inxs=getMax(stu);
printf("最高分是第%d个学生第%d门课。分数为%d\n",inxs[0]+1,inxs[1]+1,stu[inxs[0]][inxs[1]]);
return 0;
}
int getVariance(int *nums,int len)//获取一组数组的方差,nums:数组,len:数组长度
{
int i;
float sum,avg;
sum=0;
//------先求数据平均值
for(i=0;ilen;i++)
sum+=nums[i];
avg=sum/len;
//再求个数与平均值差的平方和
sum=0;
for(i=0;ilen;i++)
sum+=(nums[i]-avg)*(nums[i]-avg);
//再求平均数
return sum/len;
}
int *getMax(int stu[][CN])
{
static int inxs[2]={0,0};
int i,j,max=stu[0][0];
for(i=0;iSN;i++)
for(j=0;jCN;j++)
if(maxstu[i][j])
max=stu[i][j],inxs[0]=i,inxs[1]=j;
return inxs;
}
float *getCAvg(int stu[][CN])//每门课平均分
{
static float cAvgs[CN];
int i,j,sum;
for(i=0;iCN;i++)
{
sum=0;
for(j=0;jSN;j++)
sum+=stu[j][i];
cAvgs[i]=sum*1.0/SN;
}
return cAvgs;
}
float *getSAvg(int stu[][CN])//学生平均分
{
static float sAvgs[SN];
int i,j,sum;
for(i=0;iSN;i++)
{
sum=0;
for(j=0;jCN;j++)
sum+=stu[i][j];
sAvgs[i]=sum*1.0/CN;
}
return sAvgs;
}
Inxs的《Jumping》 歌词
歌曲名:Jumping
歌手:Inxs
专辑:Inxs Box Digital Edition
Simple Plan - Jump
Album: Still Not Getting Any
JUMP!
I don't wanna wake up today
Cause everyday's the same
And I've been waiting so long
For things to change
I'm sick of this town
Sick of my job
Sick of my friends
Cause everyone's jaded
Sick of this place
I wanna break free
I'm so frustrated
I just wanna jump (JUMP!)
Don't wanna think about tomorrow (JUMP!)
I just don't care tonight
Don't wanna think about my sorrow
Let's go, whoa!
Forget your problems
I just wanna jump
I don't wanna wake up one day
And find out it's too late
To do all the things I wanna do
So I'm gonna pack up my bags
I'm never coming back
Cause the years are passing by
And I'm wasting all my ti-time
I'm sick of this house
I'm sick of being broke
I'm sick of this town that's bringing me down
I'm sick of this place
(I can't take it anymore)
(Can't take it, can't take it)
Forget tomorrow
I just let them go, whoa!
Yeah!
I just wanna jump!
END