From c1ec52793aec286ae116a8db5eab0cfb062810ee Mon Sep 17 00:00:00 2001 From: ViolentAyang <76544389+ViolentAyang@users.noreply.github.com> Date: Fri, 1 Apr 2022 10:52:52 +0800 Subject: [PATCH] =?UTF-8?q?Create=20=E4=B8=B2=E7=9A=84=E9=93=BE=E5=BC=8F?= =?UTF-8?q?=E5=AD=98=E5=82=A8=E5=AE=9E=E7=8E=B0.c?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 串/串的链式存储实现.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 串/串的链式存储实现.c diff --git a/串/串的链式存储实现.c b/串/串的链式存储实现.c new file mode 100644 index 0000000..c36eb77 --- /dev/null +++ b/串/串的链式存储实现.c @@ -0,0 +1,18 @@ +#include +#include +#include + +typedef struct StringNode{ + char ch; //每个结点存一个字符 + struct StringNode *next; //每个指针占用四个字符 存储密度低 +}StringNode,*String; + +typedef struct StringNode{ + char ch[4]; //每个结点存多个字符 + struct StringNode *next; +}StringNode,*String; //存储密度提高 + +int main(){ + String S; + return 0; +}