数据结构串基本操作代码.docVIP

  • 15
  • 0
  • 约5.33千字
  • 约 7页
  • 2019-11-25 发布于安徽
  • 举报
实验三 串 //串的基本操作 #include stdio.h #include stdlib.h #define MAXSTRLEN 255 typedef unsigned char SString[MAXSTRLEN+1]; void strlength(SString S)//求字串并放到S[0]中 { int m; for(m=1;S[m]!=\0;m++); S[0]=m-1; }

文档评论(0)

1亿VIP精品文档

相关文档