?? seqlist.h
字號:
#include "stdio.h" //輸入輸出函數
#include "stdlib.h" // 標準庫函數
#include "funcstatus.h"
#define LIST_INIT_SIZE 80 // 線性表存儲空間的初始分配量
#define LISTINCREMENT 10 // 線性表存儲空間的分配增量
typedef struct{
int a;
int b;
}State;
typedef State ElemType;
typedef struct{
ElemType *elem; //動態數組基址
int length; //線性表表長
int listsize; //當前動態數組大小
}SqList;
Status InitList_Sq(SqList &L);
Status DestroyList_Sq(SqList &L);
Status ClearList_Sq(SqList &L);
Status ListEmpty_Sq(SqList L);
int ListLength_Sq(SqList L);
Status GetElem_Sq(SqList L, int i, ElemType &e);
int LocateElem_Sq(SqList L,ElemType e, int(*compare)(ElemType e1,ElemType e2));
//ElemType *LocateElem_Sq(SqList L,ElemType e, Status(*compare)(ElemType e1,ElemType e2));
Status ListInsert_Sq(SqList &L, int i, ElemType e);
Status ListDelete_Sq(SqList &L, int i, ElemType &e);
Status ListAppend_Sq(SqList &L, ElemType e);
Status ListTraverse_Sq(SqList L,void(*Visit)(ElemType e));
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -