摘要:
#includetypedef struct DuLNode{ int data; struct DuLNode *prior; struct DuLNode *next;}DuLNode,* DuLinkList;void ListDelete(DuLinkList &L,DuLNode *p,i... 阅读全文
摘要:
#includetypedef struct DuLNode{ int data; struct DuLNode *prior; struct DuLNode *next;}DuLNode,* DuLinkList;void ListInsert(DuLinkList &L,DuLNode *p,D... 阅读全文
摘要:
#includetypedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList;void union1(LinkList &La,LinkList &Lb){ LinkList s,p,pre; if(!La) La=Lb; e... 阅读全文
摘要:
#includetypedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList;void ListDelete(LinkList &L,LNode *p,int &e){ LinkList q; if(p==L) L=p->n... 阅读全文
摘要:
#includetypedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList;void ListInsert(LinkList &L,LNode *p,LNode *s){ LinkList q; if(p==L) { s-... 阅读全文
摘要:
#includetypedef struct LNode{ int data; int length ; struct LNode *next;}LNode,*LinkList;int count = 0 ; //与length的相同LNode * LocateElem(LinkList L,... 阅读全文
摘要:
#includetypedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList;int ListLength(LinkList L){ LinkList p=L; int k=0; while(p!=NULL) { k++; ... 阅读全文
摘要:
#includetypedef struct LNode{ int data; struct LNode *next;}LNode,*LinkList;void InvertLinkedList(LinkList &L){ LinkList p=L; L=NULL; while(p!=NULL) {... 阅读全文
摘要:
#includetypedef int A;typedef struct LNode{ A data; struct LNode *next;}LNode,*LinkList;void CreateList(LinkList &L,A a[],int n){ int i; L=NULL; for(i... 阅读全文
摘要:
#includetypedef int A;const int LIST_INIT_SIZE=100;const int LISTINCRMENT=10;typedef struct{ A *elem; int Length; int Listsize; int incrementsize;}Lis... 阅读全文