文件名称:stringzip
介绍说明--下载内容均来自于网络,请自行研究使用
问题:输出字符串连续出现的字符及次数,比如字符串为aabbaddd,则输出2a2b1a3d。 方法:先遍历字符串,再判断后续连续有多少个字符与前一个字符相等,计数累加;若不等,则重新将最后一个不等的字符串作为被判断的字符重新与其后续字符比较。-Question: the character and the number of consecutive output string, such as string aabbaddd output 2a2b1a3d. Method: first traverse the string, and then determine the follow-up consecutive number of characters equal to the previous character count cumulative If the re will last a varying string as a judge of character re its subsequent character comparisons.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
stringzip.pdf