Location:
Search - A型教学机实验程序
Search list
Description: PL0功能的扩充
一、完成的实验内容及说明
基本内容
(1)扩充赋值运算:+= 和 -=
(2)扩充语句 REPEAT
<语句序列>
DOWHILE <条件>
其中,<条件>是循环条件,即条件成立时,重复执行循环体的< 语句序列>
增加内容
(1)增加运算:++ 和 --。
(2)增加类型:① 字符类型; ② 实数类型。
(3)扩充函数:① 有返回值和返回语句;② 有参数函数。
(4)增加一维数组类型
二、实验环境与工具
(1)计算机及操作系统:PC机,WindowsXP
(2)程序设计语言:C++Builder5,VC 6.0
(3)教学型编译程序:PL/0 -PL0 functional expansion of a complete description of the experimental content and the basic content (1) Expansion assignment operator:+ = and-= (2) Expansion statement REPEAT < statement sequence> DOWHILE < terms of " where" condition " is cyclical conditions, namely the condition was established, repeated loop of the " statement sequence" additional content (1) increasing the operation:++ and-. (2) increasing the types: ① character type ② real number type. (3) expansion of functions: ① to return to the values and return statements ② a parameter function. (4) to increase one type of two-dimensional array, experimental environment and tools (1) Computer and OS: PC machine, WindowsXP (2) Programming Languages: C++ Builder5, VC 6.0 (3) teaching-oriented compiler: PL/0
Platform: |
Size: 476160 |
Author: dslh |
Hits: