C++
biggg007
这个作者很懒,什么都没留下…
展开
-
练习字符简单压缩和解压缩C++程序
Implement the function run_length_encode that accepts a string of characters as input and returns a compressed string of characters. The compression process should follow this recipe: if the charact...原创 2019-07-14 19:56:36 · 314 阅读 · 0 评论 -
定义函数,找出数组中最大的指定的个数
定义一个函数,找出指定的个数的最大整数。 #include <string> #include <iostream> /*func(3, {1,2,3,4,6,7,8})={6,7,8} func(4, {1,2,3,4,6,7,8,9 10,21,24,25,26})={26,25,24,21} */ bool get_larget_number(int...原创 2019-07-12 16:26:42 · 1206 阅读 · 0 评论