问题描述
必须编写一个程序,要求用户输入直到输入0。然后必须输出所输入数字的最小值。我是Lisp的新手,并且在控制台中不断得到未定义的函数A,但是a在代码中是变量。
You need to set the ANDROID_HOME & JAVA_HOME in your environments variables if you are in Windows and in either the bashrc or the zshr if you are using a Mac
JAVA_HOME => C:\Program Files\OpenJDK\openjdk-8u262-b10
ANDROID_HOME => C:\Users\laptopName\AppData\Local\Android\Sdk>
P.S: On Windows just enter env in the search bar and click on the first tab then click on New and add those then you are good to go.
(minOfNums)
解决方法
在(setq min (find_min (a (read))))
中,您正在调用函数a
,其结果是从用户读取对象。应该(可能)改为(setq min (find_min a (read)))
。
如果没有其他要求,find_min
函数将使用两个参数,并且编写的代码仅传递一个参数。