#include "stdio.h"
#include "string.h"
struct student
{
int no;//学号
char name[10];//年龄
char sex[10];//性别,男:M(male),女:F(female)
int age;//年龄
struct student *next;
};
void main()
{
struct student a,b,c,*head,*p;
int year;//输入一个年龄
a.no=30156;strcpy(a.name,"zhao");strcpy(a.sex,"M");a.age=21;
b.no=30158;strcpy(b.name,"qian");strcpy(b.sex,"F");b.age=19;
c.no=30160;strcpy(c.name,"sun
#include "string.h"
struct student
{
int no;//学号
char name[10];//年龄
char sex[10];//性别,男:M(male),女:F(female)
int age;//年龄
struct student *next;
};
void main()
{
struct student a,b,c,*head,*p;
int year;//输入一个年龄
a.no=30156;strcpy(a.name,"zhao");strcpy(a.sex,"M");a.age=21;
b.no=30158;strcpy(b.name,"qian");strcpy(b.sex,"F");b.age=19;
c.no=30160;strcpy(c.name,"sun