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

学习 时间:2026-03-30 17:56:32 阅读:353
C语言输入M个学生N门课程的成绩,要求输出成绩单(包括每个学生的平均分及每门课程的平均分)

最佳回答

愤怒的草丛

温暖的方盒

2026-03-30 17:56:32

这个程序满足你条件了,我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-03-30 17:56:32

    这个程序满足你条件了,我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

上一篇 求猜成语? 

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