更新时间2018-12-06 18:55:26
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
const int MAXSIZE = 128; // 每个单词不超过128个字符
typedef struct node {
char word[MAXSIZE];
int size;
struct node *next;
}*List,*pNode;
List Init() {
List head;
head = (pNode)malloc(sizeof(struct node));
head->size = 0;
head->word[0] = '