明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1309|回复: 0

[求助],关于LISP嵌套问题。

[复制链接]
发表于 2005-11-17 13:00:00 | 显示全部楼层 |阅读模式

请问这种有问题吗?

1,SSGET取得选择集,N为总个数。

2,(setq i 0)
  (while (< i n)
        ;;;;统计1

    (if (= a  b)
      (progn
         (setq c d)
         (setq vss (vl-string-search "-" e))
         (if(/= vss nil)
            ()
          )
       )

    )
    (setq DL (atof changdu))
    (cond
      (= dnn 1) (setq LL3(+ LL3 DL))
      (= dnn 2) (setq LL4(+ LL4 DL))
      (= dnn 3) (setq LL5(+ LL5 DL))
      (= dnn  4) (setq LL6(+ LL6 DL))
      (= dnn 5) (setq LL8(+ LL8 DL))
      (= dnn 6) (setq LL10(+ LL10 DL))
    )

    (if语句)
    (if语句)
   
    ;;;;;;;;;;;;;
    (setq i(1+ i))
  )
)

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-8-9 06:01 , Processed in 0.179209 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表