[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Kernels installing, but not showing up



Paul F. Johnson wrote:
Paul
Your signature is missing some spaces and a couple of ) from the code. It doesn't compile, and when it does, it misses some "a"s from the output.

Also, implicit int is deprecated and so it needs to be "int main" :)

--
#include <stdio.h>
const char*D[]={"twelfth","eleventh","tenth","ninth","eighth","seventh","sixth" ,"fifth","fourth","third","second","first"};const char*P[]={"a partridge in a \ pear tree.\n\n","two turtle doves\nand ","three french hens, ","four calling b\ irds, ","five gold rings;\n","six geese a-laying, ","seven swans a-swimming,\n" ,"eight maids a-milking, ","nine ladies dancing, ","ten lords a-leaping,\n","e\ leven pipers piping, ","twelve drummers drumming, "};int main(){int d=12,_;do{ printf("On the %s day of Christmas my true love gave to me\n",D[--d]);_=12-d;do
printf(P[--_]);while(_);}while(d);}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]