You might wonder how we can implement a function that calls itself.您可能想知道我们如何实现一个自我调用的函数might 或,威力,强权wonder奇迹might wonder可能想知道implement实施,实行,实现,执行call呼叫...
先定义一个函数:
private
function recursion(x:Real):Real;
实现代码:
implementation
{$R *.dfm}
function TForm1.recursion(x: Real): Real;
begin
if x=0 then
begin
//recursion:=0;//这句...