commit 4827456057f054d16f593ccef4a7ff3724886d66 Author: XiaoLFeng Date: Sat May 20 16:55:53 2023 +0800 初始化 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e30bef3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# 项目排除路径 +/cmake-build-debug/ \ No newline at end of file diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..aeae15b --- /dev/null +++ b/main.cpp @@ -0,0 +1,56 @@ +/* + * + */ + +#include +#define MAXSIZE 100 + +typedef struct { + int data[MAXSIZE]; + int length; +} ArrayList; + +// ʼԱ +void InitList(ArrayList &L) { + L.length = 0; +} + +// Ա +void DestroyList(ArrayList &L) { } + +// ˳Ա +// һԱɼn +void PutSeqList(ArrayList &L,int n) { + // жϵǰԱnǷ + if (L.length + n >= MAXSIZE) { + printf("[WARNING] ԱƴС"); + return; + } + // ѭ + +} + +int LengthList(ArrayList &L) { + +} + +int PositionList(ArrayList &L,int x) { + +} + +int InsertList(ArrayList &L,int i,int e) { + +} + +void OutputSeqList(ArrayList &L) { + +} + +int main() { + ArrayList list; + InitList(list); + + DestroyList(list); + return 0; +} +