搜索资源列表
编译原理及实践
- 目 录 译者序 前言 第1章 概论 1 1.1 为什么要用编译器 2 1.2 与编译器相关的程序 3 1.3 翻译步骤 5 1.4 编译器中的主要数据结构 8 1.5 编译器结构中的其他问题 10 1.6 &
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
用Java编写HTML文件分析程序
- 用Java编写HTML文件分析程序 一、概述 Web服务器的核心是对Html文件中的各标记(Tag)作出正确的分析,一种编程语言的解释程序也是对源文件中的保留字进行分析再做解释的。实际应用中,我们也经常会碰到需要对某一特定类型文件进行要害字分析的情况,比如,需要将某个HTML文件下载并同时下载与之相关的.gif、.class等文件,此时就要求对HTML文件中的标记进行分离,找出所需的文件名及目录。在Java出现以前,类似工作需要对文件中的每个字符进行分析,从中找出所需部
特殊高级计算器
- 第一步:把如下代码加入<body>区域中 <scr ipt LANGUAGE=\"java-scr ipt\"> <!-- Begin function doit() { form.input.value = eval(form.input.value) } function Cos() { x = form.input.value if (x == ) alert( Error: Input Required ) else f
namab
- ergydfhgdfhggfhg 一.实验目的 二.实验内容 三、程序简要说明 原 文 : C语言词法分析器的设计与实现 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 共9种 KE
SCS_fuzzy_edge
- Here the main process is fuzzification. Assigning the values based on fuzzy membership set and applying fuzzy rules by using if else condition and then shows the output
Lightemplate
- 我写的php模版类,调用方法简单,支持if else include之类的标签, 可以包含扩展函数,整个模版文件没有外部include和require,减少io操作, 加载三个模版变量,两个数组变量,比smarttemplate快平均2-3毫秒. 单纯加载模版文件,不设置任何变量lightemplate平均0.3毫秒左右,smarttemplate至少要1毫秒.-I write php template class, call the method is simple, if else incl
Lightemplate
- 我写的php模版类,调用方法简单,支持if else include之类的标签, 可以包含扩展函数,整个模版文件没有外部include和require,减少io操作, 加载三个模版变量,两个数组变量,比smarttemplate快平均2-3毫秒.-I wrote the php template class, call the method is simple to support if else include such labels, can contain extended functio
Lesson22
- java中关于选择语句的学习,其中有if-else以及switch的语句学习。程序比较简洁清晰,有助于java中基础的学习。-Java on the choice of statements of learning, including if-else and switch statement learning. Procedures more concise and clear, contribute to the basic learning in java.
IOS-Course---One-For-All-master
- Swift code basic - one for all If else, loop statement
factorial
- 计算任意的数的阶乘,要求:运用if else if结构和for结构。(Calculate the factorial of any number, requirements: the use of if, else, if structure and for structure.)
4222c01614ff
- 首先,您应当以一种批判的眼光来看待本程序。这个游戏是我制作 的第一部RPG游戏,无任何经验可谈,完全按照自己对游戏的理解进 行设计的。当我参照了《圣剑英雄2》的源码之后,才体会到专业游 戏引擎的博大精深。 该程序的内核大约有2000余行,能够处理人物的行走、对话、战斗, 等等。由于该程序的结构并不适于这种规模的程序,故不推荐您详 细研究该程序。所附地图编辑器的源程序我已经添加了详细的注释, 其程序结构也比较合理,可以作为初学VC的例子。 该程序在VC的程序向导所生成的SDI框架的
Desktop
- 循环嵌套判断,纯逻辑的JS判断,多重条件,一一判断(if(){ } else if (){ } else{ })
Pascal语法配对检测
- 说明: 对给定一个Pascal源文件,检查其中 (1)begin与end (2)if,then,else 是否合法配对。 对于begin与end,可以理解为C语言中的“{”与“}” 对于if,then,else,可以这么理解:if与then合在一起相当于C语言中的if, else与C语言中的else完全相同。((Given a Pascal source file, to check which (1) begin and end (2) if, then, else the legalit
pas_match
- 使用C++语言进行pascal语言的语法检查,只进行了begin end 和 if else than的检查。(Pascal language syntax check using the C + + language, only the begin end and if else than check.)
决赛程序
- 智能车巡黑线程序,摒弃以往多个if else判断条件造成的调试困难,采用双边比较排除的寻迹算法(this is a program about smart car to follow black line on white board.)
Encoder using if else statement
- Encoder using case statement
Desktop
- 实现简单计算器功能:加减乘除余。适用于初学者,采用switch-case及if-else条件语句(Realize simple calculator function: add, subtract, multiply and divide. For beginners, switch-case and if-else conditions are used.)
Fibonacci
- 用if()else()语句非递归实现的裴波那契数列(The non recursion of the if () else () statement of the Pei Bo () code)
PowerBuilder读取保存图片
- //读取保存图片 string ls_pathname, ls_filename integer li_value,li_FileNum,loops,i long ll_fileLength,bytes_read,new_pos blob b, tot_b Blob gb_photo INSERT INTO PJ_TP(AA) VALUES ('1') USING SQLCA; COMMIT USING SQLCA; li_value = GetFileOpenName(&qu