Talk:Draw a clock

From Rosetta Code
Revision as of 23:24, 4 July 2011 by rosettacode>Ledrug (ok, screenshot)

What is supposed to happen here? I could not get the C code to compile. --Rdm 01:50, 4 July 2011 (UTC)

Oh sorry, should have said it's C99, gcc -std=c99 -Wall -lm stuff.c, for example. --~~
Ok, I built it
<lang bash>$ CFLAGS=-std=c99 make clock</lang>
but when I run it my display does not look very clock like:

       :--::...                                :----------:: .                             ..::--- *%*
                   . c&-                                   .-.c&:                                  .-:.aa:
                    :-. :&c.                                :-.  -&c                                :-:   -#*
could you maybe post a screenshot or something? Thanks. --Rdm 13:30, 4 July 2011 (UTC)
I changed a code a little, it should work now (your terminal's interpretation of carriage return is different from mine). "Screenshot":<lang>
                             :a&:      
                            *#c.       
                          :a&-         
                         -&a.          
                       .c#*            
                      -&a:             
                    .c#*               
                  .-&a:                
                . *%*                  
              .:-- .:-:                
             :----.  .--.              
           .----:      :-:.            
         .:---:.        .:-:.          
         .:-:.            .:-:         
                            .--. </lang>