这个c語言程序怎么写啊

 

定义这个结构体输入数据就行

struct students
{
    int num;
    char name[8];
    char sex;
    int year,month,day;
    int english, math,physics,chemistry;
    int sum;
    int ave;
} student[5];

 

只要定义数据结构就可以了啊,分为学生信息和成绩信息

typedef struct _birthday
{
    int year;
    int month;
    int day;
}birthday;

typedef struct _score
{
    float eng;    //英语
    float maths;    //数学
    float phys;    //物理
    float chem;    //化学
    float ave;           //平均成绩
}score;

typedef struct _student
{
    char num[10];      //学号
    char name[20];     //姓名
    char sex[3];       //性别,男或女
    birthday bir;        
    score s;    
​​​​​​​}student;

 

print ("Hello,world")