搜索资源列表
bianyiyuanlisheji
- 1. PL/0 语言介绍 ●PL/0 程序设计语言是一个较简单的语言,它以赋值语句为基础,构造概念有顺序、条件和重复(循环)三种。PL/0 有子程序概念,包括过程定义(可以嵌套)与调用且有局部变量说明。PL/0语言编译程序采用以语法分析为核心、一遍扫描的编译方法。词法分析和代码生成作为独立的子程序供语法分析程序调用。语法分析的同时,提供了出错报告和出错恢复的功能。在源程序没有错误编译通过的情况下,调用类PCODE解释程序解释执行生成的类PCODE代码。 ●保留字(关键字):所谓保留字是指
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
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
自动整理IP
- @echo off color 1a title 扫描报告整理程序——飞鱼(专用)QQ:365595926 echo 扫描报告整理程序 echo 专供内部使用 echo 哈哈就要整理好啦~稍等. echo 程序整理中,请稍候…… for /f "usebackq tokens=1,2,3*" %%i in (Result.txt) do ( if 1433==%%j ( echo %%i>>1433.txt ) else ( i
编译原理课程设计
- IF-ELSE条件语句的翻译程序设计(递归下降法、输出三地址表示)
VirtualKeyboard_full_3_6_1.zip
- Introduction Virtual Keyboard is a great tool when you can t install or use additional keyboard layouts bundled with your OS. For example, you re at the internet cafe where only En/US layout is available and you want to write some letters to your Ru
suo
- 4位二进制密码锁,可能会对别人有点帮助,大家下来看看把-4 binary code lock, someone else may have a little help, everyone down to see if the
66KeyLock
- 此题目是通过键盘来实现密码输入是否正确,正确的时候数码管亮,否则发出报警声。 判断是按键还是干扰是非常有用的,它体现了一个系统的抗干扰能力。高低电平在瞬间的变换是很正常的,如果没有这条语句,系统很容易出错。 其中2秒是由定时器0来完成的。 在程序的定时器中断中,用switch代替了if else结构,使得程序的可读性大大增强。 TH0 = (65536-50000) / 256 TL0 = (65536-50000) 256 使得TH0 = 3CH, TL0 = B0H,
bianyiyuanli
- FOR循环语句的翻译程序设计(简单优先法、输出四元式),写出符合给定的语法分析方法的文法及属性文法。 完成题目要求的中间代码四元式的描述。 写出给定的语法分析方法的思想,完成语法分析和语义分析程序设计。 编制好分析程序后,设计若干用例,上机测试并通过所设计的分析程序。-FOR loop of the translation process design (a simple priority method, the output quaternion type), written in
divider
- function [a_width-1 : 0] DWF_div_uns // Function to compute the unsigned quotient // synopsys map_to_operator DIV_UNS_OP // synopsys return_port_name QUOTIENT input [a_width-1 : 0] A input [b_width-1 : 0] B reg [a_width
program
- 实现c语言的词法分析器,用文件读取,要求能识别整数、自定义标识符及以下关键字: + - * / < <= == != > >= & && || = ( ) [ ] { } : , void int float char if else while do ! main -Achieve c language lexical analyzer, using file read, the request can identify integers, custom id
exe3
- 关于日期的加减 Date Date::operator++( int ) { Date temp = *this // hold current state of object helpIncrement() return temp } // end function operator++ const Date &Date::operator+=( int additionalDays ) { for ( int i = 0
1
- int N TColor curcolor POINT Points[40] float berstein(int n,int k,float t) { float c int j if((k==0)||(k==n)) c=1 else { c=1 for(j=1,j<k j++) c=(c*(n+1-j))/j } if(((t==0)&&(k==0)))||(((t==1)&&(k==n))) return c
89l_DINISHI_LOGO_1200w_7osd
- #define PANEL_ON 0 // Power on state for LCD panel #define PANEL_OFF 1 // Power off state for LCD panel #if 1 #define LIGHT_ON 0 // Power on state for backlight inverter #define LIGHT_OFF 1 // Power off state for backlight inverter #else
code-led
- code seven leg module bcd_tang (clock, rst, s1, led) input clock, s1, rst output [6:0] led reg [6:0] led reg [3:0] bcd wire [3:0] bcd_next always @(posedge clock or posedge rst) begin if (rst == 1 b1) begin bcd <= 4
bank2
- Directions Start by changing your working directory to SL275/mod04/exercise2 on your computer. Create the banking directory. Copy the previous Banking project files in this package directory. Modify the Account class to conditionalize the
cPP
- Visual c++ 练习题 1.便写程序用if else分支结构语句,求a,b,c三个数中最大的 数并将其放在变量max中。-Visual c++ exercises
CCC
- 题目:#if #ifdef和#ifndef的综合应用。 1. 程序分析: 2.程序源代码: 复制代码 代码如下: #include stdio.h #include conio.h #define MAX #define MAXIMUM(x,y) (x>y)?x:y #define MINIMUM(x,y) (x>y)?y:x void main() { int a=10,b=20 #ifdef MAX printf( \
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
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