ADD DS_3_x_string

This commit is contained in:
Kim Yang
2020-08-08 00:06:38 +08:00
parent 591430b42e
commit fce29a01d9
5 changed files with 95 additions and 30 deletions

View File

@@ -0,0 +1,13 @@
//
// Created by kim yang on 2020/8/7.
//
//顺序存储——动态数组实现方式(堆分配存储)
#include <stdio.h>
#define MAXLEN 255 //预定义最大串长为255
typedef struct {
char *ch;//按串长分配存储区ch指向串的基地址
int length; //串的实际长度
}HString;