串的顺序存储和链式存储

#include<iostream>
using namespace std;
typedef struct {
    char *ch;
    int length;
}HString;


#define CHUNKSIZE 80
typedef struct Chunk {
    char ch[CHUNKSIZE];
    struct Chunk*next;
}Chunk;
typedef struct {
    Chunk *head, *tail;
    int curlen;
}LString;

 

posted @ 2019-10-20 22:15  Tomorrow1126  阅读(345)  评论(0编辑  收藏  举报