定义学生结构体数据类型,从键盘输入一批学生的信息,编写函数在这批学生中查找某个设定的学生。
#include <stdio.h>
#include <string.h>
#define N 10
typedef struct date {
int year;
int month;
int day;
} DATE;
typedef struct student {
int num;
char name[20];
char sex;
DATE birthday;
float score;
} STUDENT;
void input(STUDENT *s);
void output(STUDENT s);
void inputarr(STUDENT s[ ], int n);
void outputarr(STUDENT s[ ], int n);
int equal (STUDENT a, STUDENT b) ;
int serach(STUDENT a[], int n, STUDENT x);
int main() {
STUDENT b[N] = {
{10010, "L