mirror of
https://github.com/ViolentAyang/DataStructureC.git
synced 2026-02-03 02:13:14 +08:00
Create 串的链式存储实现.c
This commit is contained in:
18
串/串的链式存储实现.c
Normal file
18
串/串的链式存储实现.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user