forward [提前声明]
来源:互联网 发布:linux中安装oracle11g 编辑:程序博客网 时间:2024/05/18 23:53
通常只在implementation部分使用。如果两个函数都在implementaion部分实现,而没有在interface部分声明才需要这个关键字。例如FuncA和FuncB要相互调用,为了让FuncA知道有FuncB存在,就在FuncA的前面先声明一次FuncB并加上forward。如果FuncB在interface中声明过了就不再需要了。
function FuncB(a: Integer): Integer; forward;function FuncA(a: Integer): Integer;begin Result := FuncB(a) + 12;end;function FuncB(a: Integer): Integer;begin if (a > 99) then Result := 99 else Result := FuncA(a) + 12;end;
- forward [提前声明]
- 声明提前
- 变量声明提前和函数声明提前
- delphi中的提前声明
- javascript 声明提前
- JavaScript的声明提前
- JavaScript提前声明
- 变量声明提前
- JavaScript 变量声明提前
- javascript 声明提前
- JavaScript声明提前
- js 变量声明提前
- javascript变声声明提前
- 关于js声明提前
- js中的声明提前
- forward declaration 前置声明
- 变量声明提前 总结 js
- 前置声明(Forward declaration)
- hdu 1159 最有子结构
- Silverlight中样式的用法
- 操作系统 内存地址(逻辑地址、线性地址、物理地址)概念
- WIN7 Virtual PC 网络下载 WEC7 镜像 TFPT超时错误,解决办法!
- Play MP3/DivX on Fedora
- forward [提前声明]
- POJ 1942 Paths on a Grid .
- .NET(C#) 中使用 CsGL-OpenGL .NET
- centos 6.0安装rpmforge源
- 遗传算法入门
- 1.1 Broken Necklace
- 西安80坐标系
- some macros and extension C language of IAR C compiler
- linux 解压