该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
#include
#include
#include
struct nodeyans;
struct node
{
char het[21] = {'\0'};
char mingc[21] = {'\0'};
int shul;
struct nodeyans * pp;//把struct nodeyan链表嵌套在struct node的链表
struct node* next;
};
struct nodeyans
{
char yans[20];
int shul1;
struct node1* next;
};
struct node* list()
{
struct node* p = (struct node*)malloc(sizeof(struct node));
p->next = NULL;
return p;
}
struct node* head(char het[], char mingc[], int shul)
{
struct node* p = (struct node*)malloc(sizeof(struct