摘要: 单向链表(无头无循环)1.头插 cur->next=head;head=cur; 2.后插 cur->next=pos->next;pos->next=cur; 3.头删 tmp=head->next;free(head);head=tmp; 4... 阅读全文
posted @ 2019-07-22 16:48 Kaniso_Vok 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 项目头文件: #ifndef _LIST_H_#define _LIST_H_#include #includetypedef int LTDataType;typedef struct ListNode { LTDataType _data; ... 阅读全文
posted @ 2019-07-22 11:31 Kaniso_Vok 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 头文件如下: #ifndef _SLIST_H_#define _SLIST_H_typedef int SLTDataType;typedef struct SListNode{ SLTDataType data; struct SListN... 阅读全文
posted @ 2019-07-22 09:57 Kaniso_Vok 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 头文件如下 #ifndef _SEQLIST_H_#define _SEQLIST_H_// 顺序表的动态存储#include #include #include typedef int SLDataType;typedef struct SeqList ... 阅读全文
posted @ 2019-07-22 09:53 Kaniso_Vok 阅读(111) 评论(0) 推荐(0) 编辑