文件名称:exp16
-
所属分类:
- 标签属性:
- 上传时间:2013-10-22
-
文件大小:522byte
-
已下载:1次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
通过键盘输入一串小写字母(a~z)组成的字符串。请编写一个字符串压缩程序,
将字符串中连续出席的重复字母进行压缩,并输出压缩后的字符串。
压缩规则:
1. 仅压缩连续重复出现的字符。比如字符串"abcbc"由于无连续重复字符,压缩后的字符串还是"abcbc".
2. 压缩字段的格式为"字符重复的次数+字符"。例如:字符串"xxxyyyyyyz"压缩后就成为"3x6yz"-Through the keyboard input string lowercase letters (a ~ z) consisting of the string. Please write a string compression program,
The presence of a continuous string of letters repeated compression, and outputs the compressed string.
Compression rules:
1 continuous compression only recurring characters. Such as the string "abcbc" because without continuous repeating characters, compressed string or "abcbc".
2 compression format field "character of repetitions+ character." For example: the string "xxxyyyyyyz" compression after a "3x6yz"
将字符串中连续出席的重复字母进行压缩,并输出压缩后的字符串。
压缩规则:
1. 仅压缩连续重复出现的字符。比如字符串"abcbc"由于无连续重复字符,压缩后的字符串还是"abcbc".
2. 压缩字段的格式为"字符重复的次数+字符"。例如:字符串"xxxyyyyyyz"压缩后就成为"3x6yz"-Through the keyboard input string lowercase letters (a ~ z) consisting of the string. Please write a string compression program,
The presence of a continuous string of letters repeated compression, and outputs the compressed string.
Compression rules:
1 continuous compression only recurring characters. Such as the string "abcbc" because without continuous repeating characters, compressed string or "abcbc".
2 compression format field "character of repetitions+ character." For example: the string "xxxyyyyyyz" compression after a "3x6yz"
(系统自动生成,下载前可以参看下载内容)
下载文件列表
exp16.cpp
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.