搜索资源列表
fchh
- 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KEYWORD: 关键字 \"auto\
0123
- 条件语句if,then,else的简单优先法,输出三地址码,显示简单优先矩阵.-conditional statement if, then, else the simple priority method, the output addresses three yards, showing simple priority matrix.
06pop3
- 接收pop3 Public Function Retrieve(ByVal rhs As Pop3Message) As Pop3Message Dim message, response As String Dim msg As New Pop3Message msg.bytes = rhs.bytes msg.number = rhs.number message = \"RETR \" + rhs.number.ToString + vbCrLf
gads
- #include <stdio.h> unsigned long int crc32_table[256] unsigned long int ulPolynomial = 0x04c11db7 unsigned long int Reflect(unsigned long int ref, char ch) { unsigned long int value(0) // 交换bit0和bit7,bit1和bit6,类推 for(int i = 1
hourse
- 算法的基本思路是: 定义结构体:struct PLACE{int x, int y}表示棋盘上的位置。 依题意,马每跳一步之后都可以从七个不同的方向选择下一步的跳马,当然,前提是跳的这一步在棋盘内且它前面的任何一步都没跳到这一格子上(限界),就可以认为这一步跳成功,否则跳马不成功。若跳马不成功,则找下一个方向尝试跳马,若七个方向都跳马不成功,则回溯。 -algorithm for the basic ideas : the structure definition : PLAC
phpdemo
- $uploaddir = docs/ $uploadfile = $uploaddir. $_FILES[ EDITFILE ][ name ] print \"其他数据:\".$_POST[\"data\"].\"<br>\" if (is_uploaded_file($_FILES[ EDITFILE ][ tmp_name ])) { if (move_uploaded_file($_FILES[ EDITFILE ][ tmp_name ], $u
BeautifulFace
- 一个华丽的界面 使用方法 方法一: ModifyStyle( WS_CAPTION, WS_MINIMIZEBOX, SWP_DRAWFRAME ) //设置图标 方法二: 不用上面的,但是要去掉对话框的title属性 void CPageDlg::OnPaint() { if (IsIconic()) { ... } else { // CDialog::On
bianyiyuanlisheji
- 1. PL/0 语言介绍 ●PL/0 程序设计语言是一个较简单的语言,它以赋值语句为基础,构造概念有顺序、条件和重复(循环)三种。PL/0 有子程序概念,包括过程定义(可以嵌套)与调用且有局部变量说明。PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告和出错恢复的功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。 ●保留字(关键字):所谓保留字是指
2006081223131713066
- 迷宫地图的生成也有很多种方法,但是有些算法在生成较大维度时的计算速度很慢,尤其是如果用在电子词典之类上可能很成问题的。还有一个较大的问题就是很多算法生成的迷宫并不是真正意义上的迷宫,即路径不唯一。 用离散数学的集合观点来生成一个迷宫。 首先是M*N的一个矩阵,生成为M*N个集合,然后每次循环就合并一个集合,这样在M*N-1次合并之后就成了一个集合,也就是这M*N个元素连通了。算法首先得问题的是选择哪个元素来合并,我在这里是随机选择相邻集合。算法的关键是要记录合并的次序,否则你最后得到的只
lexica
- 词法分析器!内有文档!本程序识别的关键字为int real if then else while,仅当单独出现以上标识符时识别为关键字,对于inta,ifb等识别为标识符。 操作符分隔符! -lexical analyzer! Have documentation! The procedures for the identification of the keyword int el real if then se while, and only if there alone at the
blindsignalseparate
- 盲信号分离算法的实现和应用 大家来看看,应该对大家有点用,不是很长,如果有需要还有别的来发-Blind Signal Separation Algorithm Implementation and Application of everyone to see, we should use a little, not very long. If there is a need to have something else to fat
asm_module
- 该程序模拟UNIX中save与resume函数,并介绍在VC中如何使用汇编进行机器级的操作. 主函数很简单首先引入两个外部函数,extern \"C\"表示按传统C命名习惯.函数save将程序指针保存在(*s)中并返回0,为什么有 if(save(&sp)){...} if后的语句看起来永远都不会被执行,但是运行结果表明它被执行了.这个问题同UNIX中处理机调度函数(switch)的那个if语句(第一句)一样. 程序执行完save(&sp)后得到因为条件为假而执行else语句,
plo(CB)
- 我在三做的课程,当时拿到了95分,包括完整的报告,有IF/else/read/for等语句的plo-I do three courses, then get 95 hours, including a full report, IF there / else / read / for such phrases as the plo
20070508
- Visual Basic 6.0可以通过调用API函数格式化一个磁盘,无论是软盘还是硬盘。 打开一个新的项目(工程1) ,如果你没有更改过缺省模式,那么Visual Basic 6.0会自动添加一个form1文件,在form1上添加一个命令控件,将下面的代码拷入。 Option Explicit Private Declare Function SHFormatDrive Lib\"shell32\"( ByVal Hend AS Long,ByVal Dri
vxworks_mpc854x_gpio
- MPC8541的GPIO访问-MPC8541 visit the GPIO # define GPIO_REG (type, port) (M8260_IOP_P port # # # # type (GPIO_IMMR_ BASE)) # define gpioRegGet (type, port, reg) do (if (port == PORT_A) reg = (NW_VUINT32 *) GPIO_REG (type, A) else if (port == PORT_B) reg
ProductSearch133
- <%@ LANGUAGE=\"VBscr ipt\" %> <!--#include file=\"conn.asp\" --> <% ProductClass_2=request(\"ProductClass_2\") set rs=server.createobject(\"adodb.recordset\") sqltext=\"select * from Product\" if request(\"Product_N
xiongmaoshaoixiang
- 这是一个熊猫烧香的核心文件,本文件仅供学习,用完后,请将病毒、核心文件 删除,否则一切后果自负-This a panda in Lhasa core document, the document is for learning, has been exhausted, I would be grateful if the virus core document deleted, or else bear the consequences!
dsakf
- % 文件名:randlsbget.m % 程序员:余波 % 编写时间:2007.6.25 % 函数功能: 本函数将完成提取隐秘于上的秘密信息 % 输入格式举例:result=( scover.jpg ,56, secret.txt ,2001) % 参数说明: % output是信息隐藏后的图象 % len_total是秘密信息的长度 % goalfile是提取出的秘密信息文件 % key是随机间隔函数的密钥 % result是提取的信息 functi
decrypt
- Encrypt and decrypt a string .If you write a secure program you should to secure something such as a password , private key and something else… for this propose this article can help you to encrypt an string and decrypt a string by using some meth
000
- #include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l cin> x while(x) { unsigned long *p=new unsigned long[x+1] if(p==NULL) { cerr<<\"error!\"<<endl abo