登录
首页 » c » KMP

KMP

于 2022-08-04 发布 文件大小:211.02 kB
0 68
下载积分: 2 下载次数: 1

代码说明:

#include #include #include //朴素查找算法 //在主串str中查找子串sub int BF(const char *str,const char *sub,int pos)//O(n*m) {  int lenstr = strlen(str);  int lensub = strlen(sub);  if(poslenstr)  {   return -1;  }  int i = pos;  int j = 0;  while(i

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • SerialPortTerminal
    说明:  基于C#的串口调试助手,调试通过,应用于本人设计的一个上位机程序的一部分功能中。(C#-based assistants for serial debugging, debugging through applied to a host computer I designed part of the process functions.)
    2010-03-21 09:29:35下载
    积分:1
  • HookMouse001
    简单的鼠标钩子,运行时可以使鼠标无法操作(Simple mouse hook, the runtime can not operate the mouse)
    2012-11-30 00:31:42下载
    积分:1
  • LCS
    最长公共子序列的个人实验,输入两个不同的字符序列(要求必须是字母),将输出这两个字符序列的最长公共子序列。(Individual experiments longest common subsequence, enter two different sequences of characters (letters must be required), the output of the longest common subsequence of the two-character sequence.)
    2014-01-11 23:55:57下载
    积分:1
  • FreeHandDraw
    实现地图符号的定制与开发 有一定的参考价值(achieve map symbol customization and the development of certain reference value)
    2007-05-15 22:21:24下载
    积分:1
  • C#操作zip文件的类库
    C#操作zip文件的类库和方法
    2014-12-09下载
    积分:1
  • C51.MPU6050程序
    陀螺仪: bool  Mpu6050Detect () ; 函数功能:检测IIC地址是否应答,读取陀螺仪器件地址寄存器(who am i)判断芯片是否匹配,返回BOOL数据类型的true/fail; void  Mpu6050Init(void) ; 函数功能:初始化陀螺仪的配置参数; void Mpu6050GyroRead(int16_t * gyroData) ; 函数功能:读取陀螺仪采样值,每轴为16bit的带符号整形数据,共3轴(参数按址传递); void mpu6050AccRead(int16_t * accData) ; 函数功能:读取加速度采样值,每轴为16bit的带符号整形数据,共3轴(参数按址传递); bool  Gyro_calibe(void); 函数功能:校准陀螺仪0漂移; bool  Acc_calibe(void); 函数功能:校准加速度计0漂移;
    2022-04-29 10:36:43下载
    积分:1
  • LabWindows逐步深入与开发
    这是LabWindows逐步深入与开发实例的书籍代码(This is a gradual deepening and development of LabWindows books code examples)
    2009-02-19 14:16:56下载
    积分:1
  • 词法分析Lex
    名称:C语言词法分析器 功能:1)从C语言源代码文件中提取所有词素 2)检测程序的词法错误,给出错误行号及提示 3)语法分析器的预备程序 文件:分析器代码(Lex.c)、测试文件(test.c)、状态转换图、可执行程序 输出:错误记录文件、符号表文件、标识符文件(Name lexical analyzer for C language function: 1)Extract all lexems from C Language source code 2)Examine the syntax errors of the program and provide the line number of error line and note 3)preprocessed program file of the lexical analyzer source code of the analyzer(Lex.c), test file(test.c),status transformation chart,excutable program. Output: Error-recording file, symbol table file and identifier file.)
    2021-04-01 15:29:08下载
    积分:1
  • C51_relay_proteus
    入门教程及实例,C51控制继电器的仿真实验,完整的源码及porteus仿真原理图。(Introductory tutorial and examples C51 control rela y simulation experiment, the source and the principle diagram of the simulation. )
    2013-08-23 10:49:15下载
    积分:1
  • vlsmaddr
    本源碼是一個用從Internet的Web頁面上得到Email地址,采用多線程遞歸算法(This source code is a Web page is available from the Internet, get Email address, using a recursive algorithm for multi-threaded)
    2009-09-22 17:30:18下载
    积分:1
  • 696518资源总数
  • 105578会员总数
  • 20今日下载