读书人

GetCostFunc: TGetCostFunc; 是什么意

发布时间: 2012-03-18 13:55:39 作者: rapoo

GetCostFunc: TGetCostFunc; 是什么意思 定义变量么?
TGetCostFunc = function(X, Y, j,k: Integer;): Integer;

GetCostFunc: TGetCostFunc;

这是函数调用么
GetCostFunc(X, Y, j, k);

可函数在哪呢

能帮个忙讲解一下么

[解决办法]
TGetCostFunc是函数类型,GetCostFunc是函数变量,调用之前要让GetCostFunc的值赋为调用函数的地址
[解决办法]
按住Ctrl键,然后点名称可以看到函数的声明
在implementation下找函数的实现
[解决办法]
unit UntFunctionProcess;
interface //接口
uses
...
Procedure GetSum(m: integer); //过程的声明

implementation //实现

Procedure GetSum(m: integer);
begin
//过程的实现
end;

读书人网 >.NET

热点推荐