Delphi语言学习5函数和方法

1.函数的定义 

Code

2.调用方式

Delphi的函数有几种调用方式,

Directive  
Parameter order  
Clean-up  
Passes parameters in registers?  
register  
Left-to-right  
Routine  
Yes  
pascal  
Left-to-right  
Routine  
No  
cdecl  
Right-to-left  
Caller  
No  
stdcall  
Right-to-left  
Routine  
No  
safecall  
Right-to-left  
Routine  
No  
  例如:
Code
 3.函数声明
Code
4.函数重载
Code
 5.
原文地址:https://www.cnblogs.com/wxf82610/p/1389147.html