⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bf&kmpfindtest.cpp

📁 包含各种测试,查找和算法等代码,如冒泡算法,树的遍历,链表,队列,堆栈等
💻 CPP
字号:
#include <string.h>
#include <iostream.h>
#include <stdlib.h>

#include "String.h"								//包含顺序串类

void main(void)
{
	String str1("abababac"), str2("abac");	

	int i = str1.FindSubstr(str2, 0);
	cout << "Brute-Force算法: " << i << endl;

	i = str1.KMPFindSubstr(str2, 0);
	cout << "KMP算法: " << i << endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -