![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++程序
会飞的星星0312⭐️
这个作者很懒,什么都没留下…
展开
-
字符串匹配算法之AC search
字符串匹配算法之AC search C++编写 #include<string> #include<iostream> #include<vector> using namespace std; int main() { string str = "you"; string txt = "youhello yorld you are youomymal jhyouoeyou"; cout<<str<<endl<&l原创 2021-10-25 09:00:30 · 199 阅读 · 0 评论 -
例7.7:在口袋中有红,黄,蓝,白黑5种颜色的球若干,每次从口袋中取出3个球,问得到3种不同颜色的球的可能取法,打印出每种组合的3种颜色
//五种颜色的小球,枚举:(无序排列组合) #include #include using namespace std; enum color {red,yellow,blue,white,black}; //声明枚举类型 int main() { color pri; int i, j, k, loop; int n = 0; //n计数 for (i = red; i <= bla...原创 2019-12-27 16:54:25 · 3490 阅读 · 0 评论