2022.09.12
串的定义和实现
定长顺序存储
#define MAXLEN 255typedef struct{ char ch[MAXLEN]; int length;} SString;
#define MAXLEN 255
typedef struct{
char ch[MAXLEN];
int length;
} SString;
堆分配存储
typedef struct{ char *ch; int length;} HString;
char *ch;
} HString;
块链存储