维基副本镜像

这是 pascal.chat 维基的镜像。编辑、历史记录和登录都在那里。

Const/zh CN

Deutsch · English · Español · Français · Suomi · 中文(中国)

在Pascal程序中声明常量用来告知编译器哪些标识符是常量;常量在编译时值被初始化,而不是在运行时初始化,并且不允许再赋值。

在一些Pascal编译器中,常量的声明用来定义变量,定义的常量和变量可以随时进行赋值操作。这样,可以在编译时初始化数组,而不是执行程序时设置初始值。


From the Free Pascal wiki, page "Const/zh CN", as it stood on 2015-07-21 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

版本1,最后由WikiArchive于修改。