2013年10月28日
摘要: #includeusing namespace std;typedef int ElemType;typedef struct LNode{ ElemType data; int length ; struct LNode *next;}LNode ,*LinkList;void Print(LinkList &L){ LinkList p = L->next; if(L->length == 0) coutlength == 1) cout"datalength ;++i){ cout"data ; ... 阅读全文
posted @ 2013-10-28 14:16 南归 阅读(368) 评论(0) 推荐(0)
  2013年10月21日
摘要: #includeusing namespace std;#define Maxsize 10typedef int ElemType;typedef struct //顺序表的静态存储结构{ ElemType data[Maxsize]; int length ;}SqList;void PrintTitle(){ coutlength == 0) coutlength;++j) coutdata[j]length = 0; //初始化顺序表的其实地址和元素个数 cout>... 阅读全文
posted @ 2013-10-21 22:46 南归 阅读(179) 评论(0) 推荐(0)