![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
查找算法
那时初见
既然琴瑟起,何以笙箫默
人生若只如初见,何事秋风悲画扇
展开
-
顺序查找
顺序查找// 顺序查找.cpp : 定义控制台应用程序的入口点。 //#include "stdafx.h" #include<stdio.h> #include<windows.h> void _tmain(int argc, _TCHAR* argv[]) { int data[10] = {75,23,98,44,57,12,29,64,38,82}; int i, input原创 2015-06-06 13:41:23 · 630 阅读 · 0 评论 -
折半查找
折半查找// 折半查找.cpp : 定义控制台应用程序的入口点。 //#include "stdafx.h" #include<stdio.h> #include<windows.h>void main() { int data[11] = {0,12,23,29,38,44,57,64,75,82,98}; int i, t = 1, n = 10, m, cnt = 0, inp原创 2015-06-07 09:48:01 · 714 阅读 · 0 评论 -
字符串中子串的查找
字符串中子串的查找// 字符串中子串的查找.cpp : 定义控制台应用程序的入口点。 //// 字符串中子串的查找.cpp : 定义控制台应用程序的入口点。 //#include "stdafx.h" #include<stdio.h> #include<assert.h> #include<windows.h> const char *strstr(const char* src,const ch原创 2015-07-31 17:37:54 · 814 阅读 · 0 评论