- 博客(1)
- 收藏
- 关注
原创 串的基本功能实现
#include#include#include#define bool int#define true 1#define false 0typedef struct{char *ch;int length;}HString;bool assign(HString *t,char *chs)//生成串{int i=0;char *c=chs,*d=chs;while(c[i])//c不为空时进入循环{i++;//计算字符串常量chs的长度}if(!i){t->ch=NULL;t->length=0;}els
2011-04-16 16:27:00 342
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人