#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int count = 0;
typedef struct {
char no[8];
char name[20];
int score;
} Student;
typedef struct Node {
Student data;
struct Node* next;
} Node;
Node* CreateLinkList()
{
Node* headNode = ( Node*)malloc(sizeof( Node));
if (!headNode)
{
printf_s("内存分配失败!\n");
exit(0);
}
headNode->next = NULL;
return headNode;
}
Node* CreateNode(Student data)
{
Node* newNode = (Node*)malloc(sizeof(Node));
if (!newNode)
{
printf_s("内存分配失败!\n");
exit(0);
}
newNode->data = data;
newNode->next = NULL;
return newNode;
}
void InsertNodeByHead(Node* headNode, Student data)
{
Node* newNode = CreateNode(data);
newNode->next = headNode->next;
headNode->next = newNode;
count++;
}
void DeleteAppoinNode