-
cc1100send-and-receive
P1DIR |= 0x03; //P1_0, p1_1, OUTPUT
CLKCON &= ~0x40; //晶振
while(!(SLEEP & 0x40)); //等待晶振稳定
CLKCON &= ~0x47; //TICHSPD128分频,CLKSPD不分频
SLEEP |= 0x04; //关闭不用的RC振荡器
//Initkey();
Init_T1();
InitUART(9600); //初始化串口
请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-03-23 14:42:43下载
- 积分:1
-
3个关于排序的C程序,以及示例,来自《C语言数值常用程序》,所以程序均经过本人测试可以正常使用!...
3个关于排序的C程序,以及示例,来自《C语言数值常用程序》,所以程序均经过本人测试可以正常使用!-three on the order of C procedures, as well as examples from the "C language commonly used numerical procedures," and so I have to undergo testing can be used normally.
- 2022-03-07 21:15:37下载
- 积分:1
-
一个用MASM写的正则表达式引擎
此正则表达式引擎属于正统的NFA引擎,基本兼容Perl,简单说一下引擎是怎么实现的:
首先做一个递归下降语法分析,利用栈把正则表达式转换成NFA(以有向图的形式表现),再遍历NFA判断是否能到达完成节点。
实现正则表达式匹配的各种复杂功能的力量来自于回溯,而回溯的基础是栈,回溯能力是通过栈来达成的。
栈中保存了匹配路径中所有的状态,状态回溯就是出栈,状态匹配就是入栈。
除了回溯,一些扩展功能的实现也是通过栈来完成的,比如捕获和零宽断言,都要通过搜索或操纵栈来完成。
转换成NFA再匹配的好处是简化匹配和利于优化和DEBUG:因为不管再复杂的表达式转换成NFA之后只有边和节点组成,边和节点也只有顺序、分支、循环这三种形式组成。
详细原理说明看下面关于实现引擎的文章,第3条是我理解引擎匹配原理的入门参考。
支持GBK和UTF8编码
==参考和学习资料==
关于实现引擎的文章:
1、《Perl语言编程》第五章 书
2、《精通正则表达式》 书
3、构造正则表达式引擎 http://www.cppblog.com/vczh/archive/2008/05/22/50763.html 我的原理学习入门参考
4、NFA引擎匹配原理 http://blog.csdn.net/lxcnn/article/details/4304651
5、英文参考资料 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
- 2022-05-27 18:36:44下载
- 积分:1
-
免疫算法仿真
有很多文章放在网上,提供更多有关免疫算法比资料覆盖在本导言中。一些链接如下,但谷歌搜索"人造一词
免疫系统"会带来更多。本文论述了一些主要概念包括克隆选择、 亲和力成熟和抗体相互作用的免疫算法。
- 2022-07-17 22:52:11下载
- 积分:1
-
模拟退火算法
AppWizard has created this TspSA application for you. This application
not only demonstrates the basics of using the Microsoft Foundation classes
but is also a starting point for writing your application.
This file contains a summary of what you will find in each of the files that
make up your TspSA application.
TspSA.dsp
This file (the project file) contains information at the project level and
is used to build a single project or subproject. Other users can share the
project (.dsp) file, but they should export the makefiles locally.
TspSA.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CTspSAApp application class.
TspSA.cpp
This
- 2022-05-14 00:33:05下载
- 积分:1
-
Based on direct LU decomposition method, to solve complex coefficients equations...
基于LU分解的直接求解方法,求解复系数方程组A.x=b的解-Based on direct LU decomposition method, to solve complex coefficients equations Ax = b solution
- 2022-02-01 04:50:07下载
- 积分:1
-
红黑树的C++实现
红黑树的C++实现,包括红黑树的插入,删除,左右旋转等操作,还包括了二叉树的基本操作(用于红黑树的实现)。
- 2022-03-14 12:23:01下载
- 积分:1
-
Matlab calculated using the various features of photonic crystals parameters. A...
利用matlab计算光子晶体的各种特征参量。
一共五个希望对大家有所帮助。-Matlab calculated using the various features of photonic crystals parameters. A total of five people want to help.
- 2022-07-08 11:24:52下载
- 积分:1
-
multi
多维数组(二维以下和数组)在内存中也是按顺序存放的,因此也可以用这种方式传递。但是,如果要确切知道每个元素在数组中的位置,就应给出各维的最大索引值-multi-dimensional arrays (two-dimensional array and below) in memory is stored sequentially, so you can pass this way. However, if we know exactly each element in the array position, it should be given the largest peacekeeping index
- 2022-03-04 16:08:08下载
- 积分:1
-
该代码是“常用的计算机数值算法和程序的程序。
本代码是《计算机常用数值计算算法与程序 C++版》一书的配套线性方程组求解代码,这些C++程序已经在Virsual C++ 6.0环境下通过。注意,在VC++ 6.0中设置好路径,特别是include目录(文件夹)的路径,否则在编译时会出现找不到头文件的错误,使编译无法正常进行。-the code is "commonly used computer numerical algorithms and procedures C version," a book supporting the linear equation solving the code, these procedures have been in C C 6.0 Virsual environment through. The attention of the VC 6.0 installed path, in particular include directory (folder) path, otherwise there will be compiled header files could not find the mistakes and the compiler not normal.
- 2022-03-02 07:43:38下载
- 积分:1