摘要: 基本操作:#include using namespace std; typedef struct LNode *List; struct LNode { int Data; List next; }; struct LNode L; int length(List PtrL)//求表长 { List p = PtrL; int j = 0; while ... 阅读全文
posted @ 2019-09-15 13:18 Tomorrow1126 阅读(163) 评论(0) 推荐(0) 编辑
摘要: List Reverse(List head) { if (head == NULL || head->Next == NULL) { return head; } List p; List q; List r; p = head; q = head->Next; head->Next = NULL; whi... 阅读全文
posted @ 2019-09-15 13:16 Tomorrow1126 阅读(88) 评论(0) 推荐(0) 编辑