2 回答
![?](http://img1.sycdn.imooc.com/545867280001ed6402200220-100-100.jpg)
呼唤远方
TA贡献1856条经验 获得超11个赞
Pascal中是可以使用单元,就是使用系统的函数。
可以在HELP中找到
用法如下
Program example;
uses unitname;
begin
end.
注意第二行,使用uses加上unit的名字。
Pascal中提供一些常用的unit,比如: crt,graph,dos,system
用法等同于c中的<include>,可以直接使用unit中的函数。
当然可以自己编unit. 具体格式:
UNIT unitname;
INTERFACE
Type 后面是unit中需要用到的类型
Procedure aa(a:integer);
Procedure bb(b:char);
![?](http://img1.sycdn.imooc.com/545867790001599f02200220-100-100.jpg)
摇曳的蔷薇
TA贡献1793条经验 获得超6个赞
Pascal中是可以使用单元,就是使用系统的函数。
可以在HELP中找到
用法如下
Program example;
uses unitname;
begin
end.
注意第二行,使用uses加上unit的名字。
Pascal中提供一些常用的unit,比如: crt,graph,dos,system
用法等同于c中的<include>,可以直接使用unit中的函数。
当然可以自己编unit. 具体格式:
UNIT unitname;
INTERFACE
Type 后面是unit中需要用到的类型
Procedure aa(a:integer);
Procedure bb(b:char);
添加回答
举报
0/150
提交
取消