中國大學慕課——浙江大學數據結構 2.1線性表的順序存儲(用數組實現)

#include <stdio.h> #include <stdlib.h> //#define MAXSIZE 100; const int MAXSIZE = 100; struct LNode { int data[MAXSIZE];//可以開一個數組 也可以用一個指針 來表示數組的首地址 int len;//線性表的長度 或者叫做數組的最後一個元素 }; typedef struct
相關文章
相關標籤/搜索