天书奇谈~~C语言
___听吧
全部回复
仅看楼主
level 8
___听 楼主
这是一个国外网站之前搞的有奖比赛, 以写出看不懂的程序为最高...原文是C语言版(注意,是C程序,不是C++程序,可以用任何C编译器编译这段程序,但未必能通过C++编译)。最近由国内的一位爱好者将其改为C#版,誓要将程序阅读比赛挑战到底。   原文说明:Here's a nice challange for people who THINK they know how to read other people's code...   It's a small C program. I know, I know, it doesn't look like it's gonna get compiled, but believe me, it does. Try to guess this program's output, then try to run it. You'll be amazed to see what it does!   C语言版的挑战: #include
main(t,_,a)char *a;{return!0
l)O(-79,-13,_.Substring(O(-87,1-I,_.Substring(O(-86,0,_.Substring(1 3 ))))));if(I>l)O(l+1,I,_);o=0==O(-94,-27+l,_)||l!=2?16:I>12?9:O(2,I+1,"air|skyiv" 4 );}else if(0>l){if(-72>l)o=O(I,l,"@n'+,
#'/*{}w+/w#
cdnr/+,{}r/*de}+,/*{*+,/w{%+"+ 5 ",/w
#q#
n+,/
#{l+,/n{n+,/+#
n+,/#;
#q#
n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e
#';dq#
'l"+ 6 " q
#'+d'K#
!/+k
#;q#
'r}eKK
#}w'r}eKK{nl]'/#
;
#q#
n'){)
#}w'){){nl]'/+#
n';d}rw' i;# )"+ 7 "{nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w
#q#
n'wk nw' iwk{KK{nl]!/"+ 8 "w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c ;;{nl'-{}rw]'/+,}##'*}#nc,',#nw"+ 9 "]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# }'+}##(!!/");else if(-51
2008年01月28日 12点01分 1
1