C语言输入M个学生N门课程的成绩,要求输出成绩单(包括每个学生的平均分及每门课程的平均分)

学习 时间:2026-08-14 14:00:45 阅读:4348
C语言输入M个学生N门课程的成绩,要求输出成绩单(包括每个学生的平均分及每门课程的平均分)

最佳回答

勤劳的曲奇

体贴的月亮

2026-08-14 14:00:45

这个程序满足你条件了,我vc6通过调试运行了#includevoid main(){ float score[200][50]={0}; void inputscore(float**,int,int); void printscore(float**,int,int); int m,n; printf("please decide M="); scanf("%d",&m); printf("please decide N="); scanf("%d",&n); inputscore(score,m,n); printscore(score,m,n);}void inputscore(float score[200][50],int m,int n){ int i,j; for(i=1;i

最新回答共有2条回答

  • 无聊的戒指
    回复
    2026-08-14 14:00:45

    这个程序满足你条件了,我vc6通过调试运行了#includevoid main(){ float score[200][50]={0}; void inputscore(float**,int,int); void printscore(float**,int,int); int m,n; printf("please decide M="); scanf("%d",&m); printf("please decide N="); scanf("%d",&n); inputscore(score,m,n); printscore(score,m,n);}void inputscore(float score[200][50],int m,int n){ int i,j; for(i=1;i

上一篇 求猜成语? 

下一篇 在食盐和食醋,还有纯碱三种物质中,有没有可以检验自来水中是否含有氯离子?