• 2024-09-279、串的堆分配方式
    1、代码实现#include<stdio.h>#include<malloc.h>#include<assert.h>#include<string.h>typedefstructHeapString{char*ch;intlength;}HString;//初始化voidinitHString(HString*S){S->ch=NULL;S->length=0;