我正在尝试自学常用的lisp,并且作为宏编写的练习,我正在尝试创建一个宏来定义任意深度的嵌套do循环。我正在使用sbcl,使用emacs和slime。-2 ii jj 10 20 (print (+ ii jj)))
顺便说一句,我最初使用gensym编写这个宏来生成循环计数器(ii,jj),但是后来我意识到,如果我不能访问主体中的</e
我正在尝试将硬编码数字最小化到我的程序中,并允许用户定义max和min参数,同时确保输入是有效的。#include <iostream>
int max, A=0; {
std::cout << "What is thestd::cout << "The max number of steps are " &