home *** CD-ROM | disk | FTP | other *** search
- (defun hj01 ()
- (command "graphscr")
- (setvar "cmdecho" 0)
- (setq s 0)
- (while (/= s ".")
- (setq s (getstring "\n╩Σ╚δ▒φ┤∩╩╜╗≥<.> ╜ß╩°: "))
- (if (/= s ".")
- (progn (setq f (open "exp.dat" "w"))
- (setq len (strlen s))
- (setq n 1)
- (repeat len
- (setq sub (substr s n 1))
- (if (= sub "x") (setq sub "*"))
- (write-line sub f)
- (setq n (1+ n))
- )
- (close f)
- (command "shell" "hdcal")
- (setq f (open "exp.res" "r"))
- (setq res (read-line f))
- (close f)
- (command "graphscr")
- (print res)
- )
- (print "end")
- )
- )
- (setq len nil str nil res nil)
- )
- (hj01)