Search found 7 matches
- Wed May 12, 2010 3:28 pm
- Forum: Common Lisp
- Topic: play with picture
- Replies: 4
- Views: 5280
play with picture
Hello guys, could you help me a little bit please? I want to learn affairs . I mean.... I draw circle with red color. I need to know, how to implement this: when I click at this circle, it will change the color to black . And when I click again, it will change it back to red. Could you paste me the ...
- Wed Apr 07, 2010 9:44 am
- Forum: Common Lisp
- Topic: play with objects
- Replies: 2
- Views: 3364
Re: play with objects
Use LOOP or DOLIST to iterate over the cars in the shop. Then use your COST accessor or call (slot-value car 'cost) to get the cost of each car, summing that cost into a central accumulator variable. thanks nuntius, working.. :) . Loop was good choise. thx man . Im beginner and I didn't know this f...
- Mon Apr 05, 2010 12:12 pm
- Forum: Common Lisp
- Topic: play with objects
- Replies: 2
- Views: 3364
play with objects
Hello guys, can I ask you for help regarding my problem? I would like to create shop with cars. Then I will create two cars and I will put these cars to slot "cars" to my shop. I want to create method which will take cost of all cars from my shop and give back some number. could you advice...
- Mon Mar 22, 2010 10:35 am
- Forum: Common Lisp
- Topic: "format" command - how to solve it pls
- Replies: 5
- Views: 6508
Re: "format" command - how to solve it pls
hey guys, thank you so much. Its working right now. You are right, I used different variables to each loop and its working. the last question is, how to do that via recursion ?? (defun make-pic (num1 num2 fun) (unless (= num1 0) (make-pic (- num1 1) num2 fun) (if (funcall fun num1 num2) (format T &q...
- Fri Mar 19, 2010 1:15 pm
- Forum: Common Lisp
- Topic: "format" command - how to solve it pls
- Replies: 5
- Views: 6508
Re: "format" command - how to solve it pls
* Edit post * Delete post * Report this post * Reply with quote Re: "format" command - how to solve it pls Postby freezy39 » Fri Mar 19, 2010 1:13 pm (defun make-pic (a b function) (dotimes (x b) (format T "#")) (format T "~%") (dotimes (x (- a 2)) (format T "#&qu...
- Fri Mar 19, 2010 11:34 am
- Forum: Common Lisp
- Topic: "format" command - how to solve it pls
- Replies: 5
- Views: 6508
Re: "format" command - how to solve it pls
thank you man, I will try it and let you know .
- Thu Mar 18, 2010 1:40 pm
- Forum: Common Lisp
- Topic: "format" command - how to solve it pls
- Replies: 5
- Views: 6508
"format" command - how to solve it pls
Hi guys, could you help me a little bit pls? I would like to make a frame with parameters x y f , x and y means volume, f means function. The frame should be made from "#" and interior should be also made by "#" but it depends on predictate/function f. For example: (make-pic 5 8 ...