2013年8月5日
摘要: #include#include#includetypedef struct LNode{//指向结构体成员 必然是结构体指针 int data; struct LNode *next;}LNode,*LinkList;void InitList(LinkList &L){//构造空线性表L L = (LinkList)malloc(sizeof(struct LNode));//产生头结点 L if(!L)//存储分配失败 exit(0); L -> next = NULL; //头结点指针域为空}void CreateList(LinkList &L){int i; 阅读全文
posted @ 2013-08-05 23:32 gac 阅读(269) 评论(0) 推荐(0) 编辑