已知N个学生的信息,其中含有学号、姓名、数学成绩、物理成绩、化学成绩,编写程序求出每个学生的平均成绩

[复制链接]
查看11 | 回复2 | 2011-11-5 20:55:37 | 显示全部楼层 |阅读模式
#include "stdio.h"#include #define N 50struct student{ charid[10]; charname[10]; int score[3]; float average;} stud[N];void input()/* 输入学生的信息 */{int i;for(i=0;i<N;i++) {
printf("第%d个学生的信息:\n",i+1);
scanf("%s%s%d%d%d",stud.id,stud.name,&stud.score[0],&stud.sc...
回复

使用道具 举报

千问 | 2011-11-5 20:55:37 | 显示全部楼层
程序问题我不太熟悉...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行