turbo pascal问题!!!求解!!!

来源:百度知道 编辑:UC知道 时间:2024/05/29 11:41:52
在free pascal中是允许的,可是我家的机子是vista的,只能用turbo pascal
请问在turbo pascal里怎么写能和下面的程序段起到一样的作用:
type
node=record
num:integer;
next:^node;
end;
在turbo里是undefined kind in pointer definition(node)的错误

要这样写

Type

node2 = ^node;

node = record
num: integer;
next: node2;
end;

Pascal规定必须先定义后使用,但是指针类型有一个特例,就是可以递归定义。一般这样来建立链表

推荐你使用lazarus(功能更强大的 fp)
lazarus早有兼容Vista的版本的版本了2.2.2就可以

下面是下载地址: http://downloads.sourceforge.net/lazarus/lazarus-0.9.26-fpc-2.2.2-win32.exe?modtime=1223295926&big_mirror=1

编译器版本2.2.2
版本号0.9.26
我用vista一点问题没有!!!!!!!!!!

用lazarus,
http://download.pchome.net/development/delphi/detail-18959-1.html

学习