函数里面可以用函数吗
pascal吧
全部回复
仅看楼主
level 10
2015年11月30日 10点11分 1
level 10
如题
2015年11月30日 10点11分 2
level 11
把函数分开写再用啊
2015年11月30日 15点11分 3
level 9
可以
2015年11月30日 16点11分 4
level 9
函数里面还可以再定义函数,但是太多层好像会炸。所以还是一个一个定义再用吧
2015年11月30日 16点11分 5
level 8
当然可以,递归是十分常用的算法,后面的深搜也要(深搜确实容易爆。。。)
2015年12月02日 10点12分 6
level 10
谢谢诸位大神,本小白感激不尽
2015年12月03日 11点12分 7
level 9
可以。然而pascal是过程式(命令式)程序语言,不是函数式程序语言,因此不建议嵌套函数。
2015年12月04日 12点12分 8
你知道什么是函数式?
2015年12月12日 11点12分
@善良大白兔😜 自己搜索lambda-caculus
2015年12月12日 12点12分
@善良大白兔😜 不知道你想表达什么。。
2015年12月12日 16点12分
有签名档证明的链接或资料吗[乖]
2015年12月12日 17点12分
level 9
可以 但有时要注意一下定义的顺序
2015年12月05日 04点12分 9
level 8
【伪定义?】
procedure a(k:longint);
procedure b;
var
begin
a(n);
end;
procedure a(k:longint);
var
begin
end;
2015年12月10日 13点12分 10
level 12
f(g(x))
   --My skin's still burning from your touch,oh I just can't get enough. 
2015年12月13日 16点12分 11
level 5
eee 递归。。
2015年12月16日 07点12分 12
level 5
是常用算法,
但容易
超时
2015年12月16日 07点12分 13
level 5
递归
2016年03月07日 12点03分 14
1