PASCAL的保留字,标识符.找个专业的解释一下啊!!

来源:百度知道 编辑:UC知道 时间:2024/05/24 15:16:48
高手们,小弟刚学啊,告诉我PASCAL中所有的保留字,标识符代表什么意思啊
追加50分啊
所有的啊
只要解释一下,别的不用啊,不要废话,只要解释!!!!!!
大哥大姐们对不起,小弟我主要是参加比赛啊!奥林匹克的啊!我太着急了,不是态度不好,对不起啊

请先端正自己的态度!

*********************************************
标准Pascal语言中的保留字一共有36个.
可以分为六种类型:
1、 程序、函数、过程的符号:

(1)program 程序

(2)function 函数

(3)procedure 过程

2、 说明部分的专用定义符号

(4)array 定义数组

例如:type data=array[1..100] of integer;

(5)const 常量说明

例如:const pi=3.1415926;

(6)file 文件类型

例如:type text=file of char;

(7)lable 标号说明

格式:lable 标号1,标号2,……;

(8)packed 指令(记录)

(9)var 变量说明

例如:var a,b,c:integer;

(10)record 记录类型

例如:type studata=record

age:integer;

sex:char;

chinese:real;

maths:real;

english:real;

end;

(11)set 集合类型

例如:type num1=set of 1..10;

(12)type 类型说明

例如:定义“daytype”表示有关日期的数据类型名:

type daytype=(sun,min,tue,wed,thu dri,sat);

(13)of (见case、array、set、file)