2017年3月3日

linklist template

摘要: #include typedef int ElemType; typedef struct LNode { ElemType data; struct LNode *next; }LNode; void CreateList(LNode *&L,int a[],int n) { LNode *p; L=new LNode; L->next=... 阅读全文

posted @ 2017-03-03 15:52 ewitt 阅读(235) 评论(0) 推荐(0)

seqlist template

摘要: 1 #include 2 typedef int ElemType; 3 typedef struct{ 4 ElemType *elem; 5 int length; 6 }SeqList; 7 8 void InitSeq(SeqList &L,int n,ElemType a[]) 9 { int i=0; 10 L.elem=new ElemTy... 阅读全文

posted @ 2017-03-03 15:40 ewitt 阅读(305) 评论(0) 推荐(0)

导航