![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C程序
会飞的星星0312⭐️
这个作者很懒,什么都没留下…
展开
-
字符串匹配算法之Sunday search
字符串匹配算法之Sunday search C++编写 #include<cstring> #include<vector> #include<iostream> #include<queue> using namespace std; class Node { public: Node* fail; //失败指针 Node* child[26]; //26个小写字母,26个子节点 vector<int&g原创 2021-10-25 09:01:20 · 189 阅读 · 0 评论 -
例9.3 有3个候选人,每个选民只能投票选一人,要求编一个统计选票的程序,先后输入被选人的名字,最后输出各人得票结果。CSDN-markdown编辑器
#include<stdio.h> #include<string.h> struct person { char name[20]; int count; }leader3 = {“wang”,0,“zhang”,0,“sun”,0}; //定义结构体数组并初始化 int main() }@TOC 欢迎使用Markdown编辑器 你好! 这是你第一次使用 Markdo...原创 2019-12-02 15:57:35 · 1451 阅读 · 0 评论