虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

if-else-end

  • C++完美演绎 经典算法 如 /* 头文件:my_Include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.141

    C++完美演绎 经典算法 如 /* 头文件:my_Include.h */ #include <stdio.h> /* 展开C语言的内建函数指令 */ #define PI 3.1415926 /* 宏常量,在稍后章节再详解 */ #define circle(radius) (PI*radius*radius) /* 宏函数,圆的面积 */ /* 将比较数值大小的函数写在自编include文件内 */ int show_big_or_small (int a,int b,int c) { int tmp if (a>b) { tmp = a a = b b = tmp } if (b>c) { tmp = b b = c c = tmp } if (a>b) { tmp = a a = b b = tmp } printf("由小至大排序之后的结果:%d %d %d\n", a, b, c) } 程序执行结果: 由小至大排序之后的结果:1 2 3 可将内建函数的include文件展开在自编的include文件中 圆圈的面积是=201.0619264

    标签: my_Include include define 3.141

    上传时间: 2014-01-17

    上传用户:epson850

  • 词法分析器 对输入的程序进行分析

    词法分析器 对输入的程序进行分析,将关键字,保留字与系统标识符分开,并对其属性进行说明。 建立数组,将单词读入,对单词的ASCII码进行判断,将在ASCII码值在一定区间进行区分(使用if语句来判断),分开来后,对其所在ASCII值区间的不同,给予以不同的属性(比如:系统保留字…),词法分析器完成后要能识别+,-,=等字符。

    标签: 分析器 输入 程序

    上传时间: 2014-01-04

    上传用户:王楚楚

  • 此为编译原理实验报告 学习消除文法左递规算法

    此为编译原理实验报告 学习消除文法左递规算法,了解消除文法左递规在语法分析中的作用 内含 设计算法 目的 源码 等等.... 算法:消除左递归算法为: (1)把文法G的所有非终结符按任一种顺序排列成P1,P2,…Pn 按此顺序执行 (2)FOR i:=1 TO n DO BEGIN FOR j:=1 DO 把形如Pi→Pjγ的规则改写成 Pi→δ1γ δ2γ … δkγ。其中Pj→δ1 δ2 … δk是关于Pj的所有规则; 消除关于Pi规则的直接左递归性 END (3)化简由(2)所得的文法。即去除那些从开始符号出发永远无法到达的非终结符的 产生规则。

    标签: 编译原理 实验报告 算法

    上传时间: 2015-03-29

    上传用户:极客

  • This software was done in part for a textbook on AI I ve written called _The Basis of AI_ (tentative

    This software was done in part for a textbook on AI I ve written called _The Basis of AI_ (tentative title, subject to change but not if I get my way). For details see: http://www.mcs.com/~drt/basisofai.html

    标签: tentative software textbook written

    上传时间: 2015-03-30

    上传用户:cxl274287265

  • 目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法

    目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pascal子集语言的语法分析器。 功能:程序由两个模块LEX和YACC构成,YACC使用LEX分析后的正规单词输出流

    标签: YACC 编写 程序

    上传时间: 2015-03-30

    上传用户:hopy

  • Have you ever wanted to copy a file from your Desktop Computer to your handheld Pocket PC? This incl

    Have you ever wanted to copy a file from your Desktop Computer to your handheld Pocket PC? This included any Windows CE version too? Well if so, I will present an easy way to do it here: It s called the Remote Application Programming Interface, or, RAPI in this article. It is touched on in the MSDN but not really explained very well.

    标签: your Computer handheld Desktop

    上传时间: 2013-12-24

    上传用户:15071087253

  • This toolbox distributes processes over matlab workers available over the intranet/internet (SPMD or

    This toolbox distributes processes over matlab workers available over the intranet/internet (SPMD or MPMD parallel model). It is very useful for corsely granular parallelization problems and in the precesence of a distributed and heterogeneus computer enviroment. No need for configuration files ! Cross platforms, cross OS and cross MATLAB versions. Workers can be added to the parallel computation even if it has started. No need of a common file system, all comms are using tcpip connections

    标签: over distributes available processes

    上传时间: 2014-01-03

    上传用户:希酱大魔王

  • Client/Server版本 DBISAM compiles directly into your application with no external libraries required.

    Client/Server版本 DBISAM compiles directly into your application with no external libraries required. Runtime package support is also provided if so desired. It has a very small footprint and does not require any forms support in Delphi 6, C++Builder 6, and Kylix 2 and higher, which helps keep the size of non-UI applications like services or web applications to a minimum.

    标签: application libraries compiles directly

    上传时间: 2015-04-04

    上传用户:sz_hjbf

  • TOYFDTD1 is a stripped-down minimalist, 3D FDTD code demonstrating the basic tasks in implementing a

    TOYFDTD1 is a stripped-down minimalist, 3D FDTD code demonstrating the basic tasks in implementing a simple 3D FDTD simulation. An idealized rectangular waveguide is modeled by treating the interior of the mesh as free space and enforcing PEC conditions on the faces of the mesh. A simplified plane wave source is inserted at one end. First released 12 April 1999. Version 1.03 released 2 December 1999.

    标签: demonstrating stripped-down implementing minimalist

    上传时间: 2013-12-21

    上传用户:无聊来刷下

  • The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field

    The code assumes a two-dimensional computational domain with TMz polarization (i.e., non-zero field Ez, Hx, and Hy). The program is currently written so that the incident field always strikes the lower-left corner of the total-field region first. (If you want a different corner, that should be a fairly simple tweak to the code, but for now you ll have to make that tweak yourself.) I have attempted to provide copious comments in the code and hope that a knowledgeable C programmer can quickly map the approach as described in the paper to what is in the program.

    标签: two-dimensional computational polarization non-zero

    上传时间: 2013-12-13

    上传用户:cylnpy