怎么连接两个字符串并赋值于某变量
我是小白一个,刚接触。已知a="sa"。b="ba",使b=a+b=“saba”(setq a("dd"))
(setq b("dfd"))
(setq b(strcat a b))
这样纸好像不对,求帮助 有什么不对? strcat合并的是字符串。
(setq a "dd")
(setq b "dfd")
(setq b(strcat a b))
返回:"dddfd"
那你想要的是什么呢? (setq a(getreal "起始值"))
(setq b "dfd")
(setq b(strcat b (itoa a)))
错误: 参数类型错误: stringp 1.0 浮点数转字符串要用 rtos 函数 感谢各位的帮助提醒,真的没有想到这一方面。CAD有没有报错类型的表格呢
页:
[1]