#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct student
{
char name [4];
char number[20];
int sex;
int year;
int major;
int uclass;
};
typedef struct student STUDENT;
struct listNode
{
STUDENT data;
struct listNode* next;
};
typedef struct listNode LISTNODE;
typedef struct listNode* LISTNODEPTR;
void build(LISTNODEPTR*);
void insert(LISTNODEPTR*,STUDENT);
void print(LISTNODEPTR);
#include <stdlib.h>
#include <string.h>
struct student
{
char name [4];
char number[20];
int sex;
int year;
int major;
int uclass;
};
typedef struct student STUDENT;
struct listNode
{
STUDENT data;
struct listNode* next;
};
typedef struct listNode LISTNODE;
typedef struct listNode* LISTNODEPTR;
void build(LISTNODEPTR*);
void insert(LISTNODEPTR*,STUDENT);
void print(LISTNODEPTR);