华南理工大学数据结构与算法课件Chapter4 String.pptVIP

  • 5
  • 0
  • 约1.34万字
  • 约 15页
  • 2019-05-10 发布于广东
  • 举报

华南理工大学数据结构与算法课件Chapter4 String.ppt

Compare_Str (S, T) //compares two strings Input: string S and string T. Output: If S T, the return value is greater than 0; if S=T, the return value is equal to 0; if ST, the return value is less than 0. Length_Str (S) //requests string length Input: string S. Output: the number of elements in string S, which is called “string length”. Clear_Str (S) //Clears string Input: string S. Output: clear String S into an empty string. Concat_Str (T, S1, S2) //string connection Input: string S1 and S2. Output: return T which is a new string connected by S1 and S2. Sub_String (Sub, S, pos, len) //re

文档评论(0)

1亿VIP精品文档

相关文档