文件名称:stringzip
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:51.93kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
问题:输出字符串连续出现的字符及次数,比如字符串为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
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.