摘要:
单向链表(无头无循环)1.头插 cur->next=head;head=cur; 2.后插 cur->next=pos->next;pos->next=cur; 3.头删 tmp=head->next;free(head);head=tmp; 4... 阅读全文
摘要:
项目头文件: #ifndef _LIST_H_#define _LIST_H_#include #includetypedef int LTDataType;typedef struct ListNode { LTDataType _data; ... 阅读全文
摘要:
头文件如下: #ifndef _SLIST_H_#define _SLIST_H_typedef int SLTDataType;typedef struct SListNode{ SLTDataType data; struct SListN... 阅读全文
摘要:
头文件如下 #ifndef _SEQLIST_H_#define _SEQLIST_H_// 顺序表的动态存储#include #include #include typedef int SLDataType;typedef struct SeqList ... 阅读全文