Create 串的链式存储实现.c

This commit is contained in:
ViolentAyang
2022-04-01 10:52:52 +08:00
committed by GitHub
parent cd812d5d38
commit c1ec52793a

View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
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;
}