为什么定义了的函数不能嵌入,但直接运行又不行。
mfp吧
全部回复
仅看楼主
level 12
喂wswswsws 楼主
2016年11月03日 12点11分 1
level 13
去掉function直输c(c)
2016年11月03日 12点11分 2
level 12
喂wswswsws 楼主
不行啊!@zhengtao94364
2016年11月03日 12点11分 3
程序代码中<要有>function打头,命令提示符中<不要有>function
2016年11月03日 12点11分
@😄二师兄他师哥 那要endf结尾吗?
2016年11月03日 12点11分
level 12
喂wswswsws 楼主
没找到定义啊!
2016年11月03日 12点11分 4
2016年11月03日 12点11分
endf与function同时(或不)存在,c(c)是么函数啊,若c(c)存在,那么括号中c已定义,不能再定义c了直接c(rand)
2016年11月03日 12点11分
level 12
喂wswswsws 楼主
@zhengtao94364 不行,大神你试一下截个图呗。[乖]
2016年11月03日 12点11分 5
level 13
编写程序并存储
function c(c)
return c
endf
命令行中输入
直接c(rand())⇒运行
或print("%"+c(e))⇒运行
2016年11月03日 13点11分 6
懂了,要先把c(c)给写成程序才行。非常感谢。[真棒]
2016年11月03日 13点11分
1