c语言程序问题,答好了奉送200分

来源:百度知道 编辑:UC知道 时间:2024/05/31 04:21:42
我暂时只有25分,不过我会在时间规定内挣够200分

题目:设有十个学生,每个学生的数据包括学号、姓名、三门课成绩,希望从键盘上输入十个学生数据,要求答打印出每个学生三门课程的平均成绩,以及平均成绩最高者(包括学号、姓名、三门课成绩和平均成绩)

提示:定义结构类型
struct student
{ char num[];
char name[];
int score[];
float ave;

}
根据结构类型定义一个结构数组存放的学生数据:
student stu[10];
.......................

各位大大 帮帮忙吧
一楼的!!你 到底在写些什么?你没看我题目啊!
二楼的虽然写的也是错的,但最后几句还是可以用的
四楼的,不要糊弄我啊,虽然我不会写这个程序,但我看的懂程序。我要求有人帮我写,你随便找了一个题目相似的 就写上了?虽然有参考价值,但你至少也和我说一下,我在上课的时候才发现不行
五楼的 写的还好,但你在一开始的定义就不 大准

哈哈,LZ真是走运啊,我前不久刚刚写了一个这样的C语言程序,以下是代码。LZ一定要给我加分哟。

#include <stdio.h>
#include <string.h>

#define NO_OF_STUDENT 10

typedef struct studentType
{
int studentID;
char studentName[30];
int studentGrade;
int studentClass;

int studentScore;
char studentGPA[1];

} SLIST;

void initialize(SLIST[]);
void showList(SLIST[]);
void setInfo(SLIST[]);
void setScore(SLIST[]);
void autoGPA(int, int, SLIST[]);

int main()
{
int index;

SLIST studentList[NO_OF_STUDENT];

initialize(studentList);

printf("****************\n");
printf("Student Management\n");
printf("****************\n");

printf("1=Info | 2=Score | 3=List | 0=Exit\n");
printf("Function : ");
scanf("%d", &index);

while (i