未定义函数A有什么问题? lisp

问题描述

必须编写一个程序,要求用户输入直到输入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函数将使用两个参数,并且编写的代码仅传递一个参数。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...