首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

GetCostFunc: TGetCostFunc; 是什么意思 定义变量么?解决方案

2012-03-18 
GetCostFunc: TGetCostFunc 是什么意思 定义变量么?TGetCostFunc function(X, Y, j,k: Integer): Inte

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;

热点排行