Hi Masto, You have at least one obvious syntax error in that code, which you should probably fix before asking for help. Also, it sounds like you're asking for help with homework, which generally defeats the point.
May I suggest that you take a real swing at it, then ask for more specific help? When you do, here are some things that will make it easier to help you: 1) Code that compiles 2) Any error messages that you're getting 3) A clear analysis of the problem -- what is it you're trying to achieve? "Digital clock" doesn't tell us much. Is it supposed to show seconds? 12 or 24 hour format? Does it need to sync with real time, should it simply start from midnight, or what? Does it need to respect time zones? Show us that you've thought this through. 4) A specific element you're having problems with. "Please give me the solution" doesn't motivate people to help, but "I'm not clear on how to manage timers -- how can I get it to do something 1 second from now?" does. Good luck! Dave On Sun, Oct 23, 2016 at 7:08 AM, Masto Fine <thomaspierrard1...@gmail.com> wrote: > please help me , i start on racket and i should write a little programm > "digital clock" in exercice . i have just a book without answer to help me . > this is what i write . > please correct me and give the good answer ! > : (define (horloge-numerique T) > (local [(define LARG 100) > (deinne HAUT 100) > (define SCENE (rectangle LARG HAUT 'solid "grey")) > (define NUMBER (integer 10 20 "black")) > (define X0 (/ LARG 2)) > (define Y0 (/ HAUT 2)) > ; le ùmonde est une suite de chiffre allant de 1 jusqu'à 59 > (define INIT 0) > (define dT ((NUMBER->digits 123...59)->(NUMBER -> > listof-numbers 1 2 3 ... 59))) > (define (suivant T) > (+ T dT)) > (define (dessiner T) > (place image listof-number X0 YO SCENE)) > (define (final? T) > (>= T 59))] > (big-bang INIT > (on-tick suivant) > (on-draw dessiner LARG HAUT) > (stop-when final?)))) > thank you for all > > -- > You received this message because you are subscribed to the Google Groups > "Racket Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to racket-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.