mirror of
https://github.com/CodePanda66/CSPostgraduate-408.git
synced 2023-05-21 21:49:33 +08:00
🔥 change Structure of Src
This commit is contained in:
27
DataStructure/Src/DS_3_String/DS_3_1_HString.cpp
Normal file
27
DataStructure/Src/DS_3_String/DS_3_1_HString.cpp
Normal file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// 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;
|
||||
|
||||
/**定义模块**/
|
||||
|
||||
/**实现模块**/
|
||||
//坐等填坑
|
||||
|
||||
/**实现模块**/
|
||||
|
||||
/**测试模块**/
|
||||
|
||||
|
||||
/**测试模块**/
|
||||
Reference in New Issue
Block a user