代码搜索:模式匹配
找到约 10,000 项符合「模式匹配」的源代码
代码结果 10,000
www.eeworm.com/read/271634/10985906
cpp kmp.cpp
#include"stdio.h"
#include"string.h"
#include"iostream.h"
int Index_KMP(char S[],char T[],int nextval[])//利用模式串T的next函数求T在主串S中第pos个字符之后的位置
{
int i;
int j;
i=0;j=1;
while(i
www.eeworm.com/read/416047/11043497
h sdcardread.h
#define uchar unsigned char
#define uint unsigned int
#define ulong unsigned long
sfr AUXR =0x8e;
//pin脚定义
//SD卡使用SPI模式进行读写
//1-:
//2-CS ->P3.2
//3-MOSI->P3.3
//4-+3v3
//5-CLK ->P3.4
//6-v
www.eeworm.com/read/470565/6913837
c sch.c
/*------------------------------------------------------------------*-
版权说明:
1、此程序应称作“时间触发多任务调度器”。
2、程序摘自《时间触发嵌入式系统设计模式
使用8051系统微控制器开发可靠应用》。
在本站好书推荐中有对此书的说明。
3、原作者在书中对版权进行了说
www.eeworm.com/read/182497/6951601
c adcon.c
#include "fDETDeclare.H"
#include "DETConst.H"
//读ADC TLC1549的结果
//选用模式 1
//输入参数:TLC1549只支持单路输入
//输出参数:对应通道号的电压值:0——0x3FF的10位无符号整数
unsigned int ReadAD1549(void)
{
unsigned char i,j;
www.eeworm.com/read/466955/7024885
c algo4-2.c
/* algo4-2.c 实现算法4.6、4.8的程序 */
#include"c1.h"
#include"c4-1.h"
#include"bo4-1.c"
void get_nextval(SString T,int nextval[])
{ /* 求模式串T的next函数修正值并存入数组nextval。算法4.8 */
int i=1,j=0;
n
www.eeworm.com/read/466955/7024892
c algo4-1.c
/* algo4-1.c 实现算法4.6、4.7的程序 */
#include"c1.h"
#include"c4-1.h"
#include"bo4-1.c"
void get_next(SString T,int next[])
{ /* 求模式串T的next函数值并存入数组next 算法 4.7 */
int i=1,j=0;
next[1]=0;
www.eeworm.com/read/378796/7069973
c tty_io.c
/* passed
* linux/kernel/tty_io.c
*
* (C) 1991 Linus Torvalds
*/
#include
/*
* 'tty_io.c'给tty 一种非相关的感觉,是控制台还是串行通道。该程序同样
* 实现了回显、规范(熟)模式等。
*
* Kill-line,谢谢John T Kahl。
*/
#include
www.eeworm.com/read/100768/7114654
txt readme.txt
[中文GB]
please read the announcement in doc/readme.doc first.
请首先阅读在文件doc/readme.doc中的声明。
==在Linux下安装
以ASCII方式上传 source 目录下的文件
注意!!! Makefile.dynamic 和 Makefile.static请一定使用ASCII模式上传
以ASCII方式上
www.eeworm.com/read/177194/7119881
h i2cint.h
/****************************************************************************
* 文件名:I2CINT.H
* 功能:硬件I2C软件包,利用中断方式操作。(头文件)
* 说明:主程序要配置好I2C总线接口(I2C引脚功能和I2C中断,并已使能I2C主模式)
****************************