Files
CSPostgraduate-408/DataStructure/DS_3_String/DS_3_1_HString.cpp
Kim Yang ce38701c86 🎨 format file
2020-08-14 04:44:10 +08:00

15 lines
356 B
C++
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// Created by kim yang on 2020/8/7.
// Copyright (c) Kim Yang All rights reserved.
//
//顺序存储——动态数组实现方式(堆分配存储)
#include <stdio.h>
#define MAXLEN 255 //预定义最大串长为255
typedef struct {
char *ch;//按串长分配存储区ch指向串的基地址
int length; //串的实际长度
}HString;