搜索资源列表
lixminC
- 这是编译原理词法分析源程序和实验报告。本程序亮点在于: 1、能够处理ANSI C 定义的42种运算符,32个关键字。 2、能够识别并且抽取预处理语句(如#include, #define , #ifdef....)存到preprocess.log中(格式例子为:line 0 : #include<stdio.h>) 3、能够识别并剔除两种注释(//和/* */) 4、能够识别简单的词法错误 missing terminating " 并且告诉你是在第几行出的错。 5、能够识别浮点数,
sdToolkit
- Semi-automatic Differentiation (SD) Toolkit is a Matlab implementation of the complex step derivative (CSD) technique for the differentiation of real-valued functions. The Toolkit consists of three core functions: sdGrad.m - Returns CSD approx
aglo7-1
- 二叉树的基本算法。(1) 输出二叉树B; (2) 输出二叉树B的深度; (3) 输出H结点的左、右孩子结点值; (4) 输出二叉树B的宽度; (5) 输出二叉树B的结点个数; 输出二叉树B的叶子结点个数 -The basic algorithm for binary tree。(1) output binary tree B (2) The output of a binary tree B of depth (3) The output of H nodes
aglo7
- (一) 编写一个程序LAGO7-1.CPP,实现二叉树的各种运算,并在此基础上设计一个主程序完成如下功能。 (1) 输出二叉树B; (2) 输出二叉树B的深度; (3) 输出H结点的左、右孩子结点值; (4) 输出二叉树B的宽度; (5) 输出二叉树B的结点个数; 输出二叉树B的叶子结点个数 -(A) to prepare a program LAGO7-1.CPP, to achieve a variety of binary operations, and on
1
- #include <mega8.h> #include <stdio.h> #include <delay.h> #include <mega8.h> #include <stdio.h> #include <delay.h> #define TG PORTB.1 #define RF_Rx PIND.2 #define Busy PIND.3 #define Mess1
4
- #include <mega8.h> #include <stdio.h> #include <delay.h> #include <mega8.h> #include <stdio.h> #include <delay.h> #define TG PORTB.1 #define RF_Rx PIND.2 #define Busy PIND.3 #define Mess1
ds_6
- 1.定义哈希表数据结构。 2.除留余数法做为哈希函数、 H(key) = key P 用线性探测再散列解决冲突方法,编写函数,实现哈希造表的过程,并输出哈希表。 3.编写函数,求查找成功时的平均查找长度(ASL)。-1. Define hash table data structure. 2. In addition to leaving the remainder as the hash function method, H (key) = key P re-hashing
work
- matlab 关于association rule 的自己写的函数,有3个文件, association.m:h = association(m, i, j) i=>j, m是数据,h是support和confidence,该函数只适用于单个数据 ass_item: h=ass_itset(m, a, b) 同上,但是可用于多个数据(m为数组) assrule: h = assrule(m, threshold1, threshold2) 该函数用于c
jpeg
- JPEG 静态图像压缩 各文件功能说明如下: 1) JPEG压缩程序:gendat.exe 2) 为压缩后的数据加上JPEG文件头的程序genjpg.exe 3) 解JEPG压缩程序extrdat.exe 其中:(1)的输入参量是需要生成的压缩文件的名字。 主程序流程为: a) 程序初始化,读取文件名称、原始图像数据等基本数据; b) 从AC.TAB和DC.TAB两个文件生成AC表和DC表,存入数组 c) 以8×8为样本单位进行DCT变换 d) 以8×8为
DVD2AVI_164_SRC
- Dvd to AVI DVD2AVI is based on MSSG MPEG2Decode-1. GUI interface (gui.cpp) 2. VFAPI support (vfapi.c vfapidec.c) 3. AC3/MPA/LPCM demux (getbit.c) 4. Auto-split AVI output through RGB24/YUY2 (store.c) 5. YUY2 DirectDraw Overlay (store.
DLink
- 1.求双向循环链表的长度 2.在双向循环链表指定位置插入一个元素 3.给定双向循环链表中一个结点元素值e,要求将数据y插入到元素e的前面 4.给定双向循环链表中一个结点元素值e,要求将数据y插入到元素e的后面 5.给定双向循环链表中一个结点元素值e,要求将数据y插入到元素e的后面 6.删除双向循环链表中指定位置的元素 7.给定双向循环链表中一个结点元素值e,要求将其对应结点删除 8.给定双向循环链表中一个结点元素值e,要求删除对应结点的直接前驱 9.给定双向循环链
lunkuosaomiao
- 城市轮廓线: 输入文件:input1.dat 第一行为建筑个数 之后每行格式为三个数x1 h x2,其中x1,x2是建筑的开始和结束坐标 h是建筑的高度 输出最后轮廓-Urban contour line: the input file: input1.dat first acts after the building number format for each line number 3 x1 h x2, where x1, x2 is the beginn
123456
- 模拟实现单机目录FAT的文件系统 基本思路:用二进制文件空间模拟磁盘空间,用文件块操作模拟磁盘块操作。 基本设计要求:1、实现如下文件系统功能(过程或函数): a、 打开文件系统 FILE *OPENSYS(char *filename) b、 关闭文件系统 int CLOSESYS(FILE *stream) c、 显示目录 void LISTDIR(void) d、 建立文件 int FCREATE(char *filename) e、 删除文件 int
Lave1
- #include <iostream> #include <stdlib.h> #include <string.h> using namespace std const kl = 4, kzs = 2, m = 6, n = 4, Error = 5 char *K[kl] = {{"01"},{"bB"},{"23456789ACDEFacdef"},{"hH"}} int A[m][n] = {{1,2,2
ALGO3-5
- Algo3-5.c C program for implementing Algorithm 3.5 Algorithm translated to C by: Dr. Norman Fahrer IBM and Macintosh verification by: Daniel Mathews NUMERICAL METHODS: C Programs, (c) John H. Mathews 1995 To accompany the text: NU
PS2_Keyboard_library
- 使用说明: 1、该头文件还处在更新中,已经可以从PS2键盘中提取所需的键盘扫描码,并能单独存储最后一次的通码和断码。 2、该头文件提供一个Scan_Key_Board_PS2()函数,该函数将PS2键盘的输出模拟成普通的 n*m 键盘扫描的输出模式,即当有键按下时,通过该函数将获得对应的键盘扫描码,当没有键按下时,将获得一个KEY_NULL的返回。 3、该头文件需要的硬件支持为: 一个下降沿触发的外中断,并将.h中的宏KEY_BOARD_PS2_INSERT_INT_I
myTestFunctor
- c++ 的 functor实现,支持c函数和成员函数,使用非常简单,源码带使用例子 包含头函数:#include "Functor.h" 初始化c函数指针 Functor< int, int, int, int, int, int > fun1( &FuncSum ) printf( "fun1: d\n", fun1.Exec( 1, 2, 3, 4, 5 ) ) Functor< int, int, int, int, int, int > f
orbita_sunsync
- Orbita.m Programa para dibujar un periodo de la orbita de un satélite apartir de los parámetros orbitales Programado a partir de la hoja TUNDRA2.pdf Ramon Martínez, 20-12-2006 Parámetros k=398613.52 en (km^3)/(s^2) Re = 6377 km
ASTGTest
- 本文主要初步介绍在VC6环境下利用CADO class,datagrid分页显示数据。 1、用VC操作数据库是非常麻烦的,网上关于VC下利用ADO和datagrid操作数据库的教程也很多,但无非是相互抄袭。 2、ADO使用起来麻烦,然而一个老外写的ADO Classes我感觉还是挺好用的。包括两个文件ado2.h和ado2.cpp,而网上关于使用这个类进行ADO数据库操作的文章不多。 3、VC6.0下的datagrid貌似没有.net的那么强大,也没有VB6那么好用。连分页都显得麻烦
UNIXCcode
- 用C语言编写的Unix代码实例 供大家参考 -#include <sys/sem.h> #include <sys/types.h> #include <sys/ipc.h> #include <stdio.h> #include <sys/stat.h> #define VERIFYERR(a, b) if (a) fprintf(stderr, " s failed.\n", b) else fp