摘要:
##BF算法 算法思路比较简单,跟KMP比简直幼儿园级别的,可以指定主串中查找的起始位置,每次匹配失败指针回溯主串指针i=i-j+1,子串指针j=1 #include <iostream> using namespace std; int Index_BF(string A, string B, i 阅读全文
摘要:
##循环队列 #include <iostream> using namespace std; #define MAXQSIZE 100 typedef int QElemType; typedef struct { QElemType* base; int front; //头指针 int rea 阅读全文
摘要:
##顺序表 #include <iostream> using namespace std; constexpr auto MAXSIZE = 100; constexpr auto ERROR = 0; constexpr auto OK = 1; typedef int ElemType; // 阅读全文
摘要:
Electron Dictionary电子词典程序 界面设计使用选项卡的设计方式,有查单词和生词本这两个示例功能选项。查单词功能选项页面可以输入单词查询,并返回查到的结果,还可以选择将查询结果添加到生词本。生词本功能选项页面,能将添加过的生词以表格的形式展示出来,添加单词到生词本后生词本中的数据能自 阅读全文