#include
#include
#include
struct student
{
char name[20];
int age;
char sex[5];
char tel[20];
};
struct Node
{
struct student data;
struct Node* next;
};
struct Node* createlist()
{
struct Node* head = (struct Node*)malloc(sizeof(struct Node));
head->next = NULL;
return head;
}
struct Node* creatNode(struct Node data) // 有点问题
{
struct Node* newNode = (struct Node*)malloc(sizeof(struct Node));
newNode->data = data;
newNode->next = NULL;
return newNode;
}
struct Node* creatNode(struct student data)