BieudienDStuyentinh
Biểu diễn bằng mảng(lưu trữ kế tiếp):
Typedef Keytype ElementType;
Define MLIST 100
Typedef struct LIST
{
Int;
ElementType Ele[MLIST];
};
LIST A;
//=========================================
Biểu diễn bằng cấu trúc tự trỏ(lưu trữ móc nối):
Typedef Keytype ElementType;
Typedef struct NODE
{
ElementType data;
NODE *next;
};
NODE *first,*last;
Bạn đang đọc truyện trên: Truyen247.Pro