摘要: #includeusing namespace std;typedef struct LNode { int data; struct LNode *next;}LNode , *LinkList;LNode *p,*q;LinkList H;//求链表的长度int ListLength(LinkL... 阅读全文
posted @ 2015-01-06 17:16 NYNU_ACM 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include#includeusing namespace std;#define MAX 500 //宏定义方式定义符号常量 比较少用 const int maxlength=500; //const定义常变量 比较常用 typedef struct elemtype{... 阅读全文
posted @ 2015-01-06 17:14 NYNU_ACM 阅读(242) 评论(0) 推荐(0) 编辑