tag:blogger.com,1999:blog-5382571416341492754.post6821499243025687221..comments2024-03-20T15:59:17.245-04:00Comments on Blogface.org: C++ Will Never DieNelshttp://www.blogger.com/profile/07085287093689227850noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-5382571416341492754.post-50087692727361080592007-03-21T00:17:06.000-04:002007-03-21T00:17:06.000-04:00Excellent Explanation. Thanks Rand!Excellent Explanation. Thanks Rand!dangiankitnoreply@blogger.comtag:blogger.com,1999:blog-5382571416341492754.post-51927595829872202392007-03-20T21:39:23.000-04:002007-03-20T21:39:23.000-04:00Dude, I am so sorry I missed the dance party. It s...Dude, I am so sorry I missed the dance party. It sounds like an awesome time...nolacoasternoreply@blogger.comtag:blogger.com,1999:blog-5382571416341492754.post-34797330786056631132007-03-20T21:33:43.000-04:002007-03-20T21:33:43.000-04:00Neat, here's an explanation: http://research.m...Neat, here's an explanation: http://research.microsoft.com/~tball/papers/XmasGift/<br /><br />randAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5382571416341492754.post-46803468039672125752007-03-20T10:57:21.000-04:002007-03-20T10:57:21.000-04:00I've got a C Code, not written by me, sent by ...I've got a C Code, not written by me, sent by a friend of mine. Do check it out. I am sure, the output shall amaze you. It uses Recursion with Pointers, just see if you could follow its trace?<br /><br />Code,<br /><br />#include <br />main(int t,char _,char *a)<br />{<br />return!0<t?t<3?main(-79,-13,a+main(-87,1-_,<br />main(-86, 0, a+1 )+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ): 9:16:t<0?t<-72?main(_, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\<br />,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\<br />+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\<br />l]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#\ n'wk nw' iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \ ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;\<br />#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/") :t<-50?_==*a ?putchar(a[31]):main(-65,_,a+1):main((*a == '/')+t,_,a\<br />+1 ):0<t?main ( 2, 2 , "%s"):*a=='/'||main(0,main(-61,*a, "!ek;dc \<br />i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}<br /><br />Output,<br /><br />On the first day of Christmas my true love gave to me<br />a partridge in a pear tree.<br /><br />On the second day of Christmas my true love gave to me<br />two turtle doves<br />and a partridge in a pear tree.<br /><br />On the third day of Christmas my true love gave to me<br />three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the fourth day of Christmas my true love gave to me<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the fifth day of Christmas my true love gave to me<br />five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the sixth day of Christmas my true love gave to me<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the seventh day of Christmas my true love gave to me<br />sevean swans a-swimming,<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the eighth day of Christmas my true love gave to me<br />eight maids a-milking, sevean swans a-swimming,<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the ninth day of Christmas my true love gave to me<br />nine ladies dancing, eight maids a-milking, sevean swans a-swimming,<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the tenth day of Christmas my true love gave to me<br />ten lords a-leaping,<br />nine ladies dancing, eight maids a-milking, sevean swans a-swimming,<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the eleventh day of Christmas my true love gave to me<br />eleven pipers piping, ten lords a-leaping,<br />nine ladies dancing, eight maids a-milking, sevean swans a-swimming,<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.<br /><br />On the twelfth day of Christmas my true love gave to me<br />twelve drummers drumming, eleven pipers piping, ten lords a-leaping,<br />nine ladies dancing, eight maids a-milking, sevean swans a-swimming,<br />six geese a-laying, five gold rings;<br />four caalling birds, three french hens, two turtle doves<br />and a partridge in a pear tree.dangiankitnoreply@blogger.comtag:blogger.com,1999:blog-5382571416341492754.post-34014828256236085362007-03-20T03:43:26.000-04:002007-03-20T03:43:26.000-04:00I've been trying to think of a circumstance wh...I've been trying to think of a circumstance when it might be helpful to be able to reference an object on the same line as it's instantiation, but I really just can't. I can't wait until I have the opportunity to get out of my c++ hole and learn a language that's actually fun to program in. btw you missed a sweet dance party at girl house the night you left. I got drunk, and broke the lamp above the pool table with my head while dancing. We all missed you dearly.<br /><br />love,<br />RandAnonymousnoreply@blogger.com