- 博客(2)
- 收藏
- 关注
原创 【密码学实验一】单表替换
读取整行字符串 限制输入字母在A至Z之间 按字符顺序进行解密 #include <iostream> #include <cstdio> #include <string> using namespace std; int main() { string s; getline(cin, s); //读整行 for (int i = 0; i < s.length(); i++) { if (s[i] >= 'A' &&..
2022-05-28 19:52:43
536
1
原创 【数据结构の一些复盘】HM5_字符串匹配——KMP算法及其优化
//第一,请实现KMP算法; //第二,考虑KMP算法的优化,以模式串为aaaaaaaaaaab为例 //第一,请实现KMP算法; //第二,考虑KMP算法的优化,以模式串为aaaaaaaaaaab为例 #include <iostream> #include <string> using namespace std; #define MAXSTRLEN 255//用户可在255以内定义最大串长 typedef struct { char ch[MAXSTRLEN]; .
2021-10-28 08:02:03
116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人