Hello,world!
给大家欣赏一下几个超级无敌的C程序郑重声明:经本人测试,以下代码均在gcc下编译通过
#define _________ }
#define ________ putchar
#define _______ main
#define _(a) ________(a);
#define ______ _______(){
#define __ ______ _(0x48)_(0x65)_(0x6C)_(0x6C)
#define ___ _(0x6F)_(0x2C)_(0x20)_(0x77)_(0x6F)
#define ____ _(0x72)_(0x6C)_(0x64)_(0x21)
#define _____ __ ___ ____ _________
#include <stdio.h>
_____
#include <stdio.h>
#define __(a) goto a;
#define ___(a) putchar(a);
#define _(a,b) ___(a) __(b);
main()
{ _:__(t)a:_('r',g)b:_('\$',p)
c:_('l',f)d:_(' ',s)e:_('a',s)
f:_('o',q)g:_('l',h)h:_('d',n)
i:_('e',w)j:_('e',x)k:_('\n',z)
l:_('H',l)m:_('X',i)n:_('!',k)
o:_('z',q)p:_('q',b)q:_(',',d)
r:_('i',l)s:_('w',v)t:_('H',j)
u:_('a',a)v:_('o',a)w:_(')',k)
x:_('l',c)y:_('\t',g)z:___(0x0)} #include <stdio.h>
#define _(_) putchar(_);
int main(void){int i = 0;_(
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++i)_(++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++i)_(++++++++++++++
i)_(--++i)_(++++++i)_(------
----------------------------
----------------------------
----------------------------
----------------------------
----------------i)_(--------
----------------i)_(++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++++
++++++++++++++++++++++++++i)
_(----------------i)_(++++++
i)_(------------i)_(--------
--------i)_(----------------
----------------------------
----------------------------
----------------------------
----------------------------
------i)_(------------------
----------------------------
i)return i;} 还是看链接吧,贴起来老是出问题~~
http://coolshell.cn/?p=914 呵呵,以前我收集过整套的ioccc代码,
效果比上面的还要壮观。 太厉害了。以前都没有想过的。 #define _________ } /*_________ 最长的这个是}*/
#define ________ putchar
#define _______ main
#define _(a) ________(a); /*_ 为putchar()*/
#define ______ _______(){ /*______这个长度就是main()*/
#define __ ______ _(0x48)_(0x65)_(0x6C)_(0x6C) /*__这个长度就是几个putchar(),很明显0x48就是第八个大写字符H了*/
#define ___ _(0x6F)_(0x2C)_(0x20)_(0x77)_(0x6F) /*___这个长度也是几个putchar(),很明显可以认出0x20是空格符号*/
#define ____ _(0x72)_(0x6C)_(0x64)_(0x21) /*同上*/
#define _____ __ ___ ____ _________ /*_____ 这个就等于 main(){helloworld 的 putchar()}*/
#include <stdio.h>
_____
翻译了一下第一个 我也写过一个比较乱的代码,大家看看看的出结果不?/*
本程序用于测试二联符以及一些编码。
winxos 2009-6-19
*/
#include <iostream>
using namespace std;
%:define police 110
%:define X 10
%:define I +1
int main()
<%
int _i(5),_(861904),_24(24);
char a<:8:>=<%police%>;
while(a<:_i--] =*a+_%X*(_24%2?-1:1)I,_24>>=1,_/=X);
cout<<a<<endl;
return 0;
} 像以前的JAVA混淆器处理过的代码也比较恐怖 ,
一堆的0oOoo之类的东西。 好吧,再给大家看一个日本人写的程序吧,非常的变态。 #define/**/X
char*d="X0[!4cM,!"
"4cK\`*!4cJc(!4cHg&!4c\$j"
"8f'!&~]9e)!'|:d+!)rAc-!*m*"
":d/!4c(b4e0!1r2e2!/t0e4!-y-c6!"
"+|,c6!)f\$b(h*c6!(d'b(i)d5!(b*a'\`&c"
")c5!'b+\`&b'c)c4!&b-_\$c'd*c3!&a.h'd+"
"d1!%a/g'e+e0!%b-g(d.d/!&c*h'd1d-!(d%g)"
"d4d+!*l,d7d)!,h-d;c'!.b0c>d%!A\`Dc\$![7)35E"
"!'1cA,,!2kE\`*!-s@d(!(k(f//g&!)f.e5'f(!+a+)"
"f%2g*!?f5f,!=f-*e/!<d6e1!9e0'f3!6f)-g5!4d*b"
"+e6!0f%k)d7!+~^'c7!)z/d-+!'n%a0(d5!%c1a+/d4"
"!2)c9e2!9b;e1!8b>e/! 7cAd-!5fAe+!7fBe(!"
"8hBd&!:iAd\$![7S,Q0!1 bF 7!1b?'_6!1c,8b4"
"!2b*a,*d3!2n4f2!\${4 f. '!%y4e5!&f%"
"d-^-d7!4c+b)d9!4c-a 'd :!/i('\`&d"
";!+l'a+d<!)l*b(d=!' m- a&d>!&d'"
"\`0_&c?!\$dAc@!\$cBc@!\$ b < ^&d\$\`"
":!\$d9_&l++^\$!%f3a' n1 _ \$ !&"
"f/c(o/_%!(f+c)q*c %! * f &d+"
"f\$s&!-n,d)n(!0i- c- k) !3d"
"/b0h*!H\`7a,! 5 4 71"
"[=ohr&o*t*q*\`*d *v *r ;02"
"7*~=h./}tcrsth &t : r 9b"
"].,b-725-.t--// #r [ < t8-"
"752793?<.~;b ].t--+r / # 53"
"7-r[/9~X.v90 <6/<.v;-52/={ k goh"
"./}q; uvto hr\`.i*\$engt\$ \$ ,b"
";\$/ =t ;v; 6 =\`it.\`;7=\` : ,b-"
"725 = / o\`. .d ;b]\`--[/+ 55/ }o"
"\`.d : - ?5 / }o\`.' v/i]q - "
"-[; 52=\`it . o;53- . "
"v96 <7 / =o : d =o"
"--/i]q-- [; h. / = "
"i]q--[;v 9h ./ < - "
"52={cj u c&\` i t . o ; "
"?4=o:d= o-- /i ]q - "
"-[;54={cj uc& i]q - -"
"[;76=i]q[;6 =vsr u.i / ={"
"=),BihY_gha ,)\0 " , o [
3217];int i, r,w,f , b ,x ,
p;n(){return r<X X X XX
768?d[X(143+ Xr++ + *d )%
768]:r>2659 ?59: ( x =d
[(r++-768)% X947 + 768] ) ?
x^(p?6:0):(p= 34 X X X )
;}s(){for(x=n (); ( x^ ( p
?6:0))==32;x=n () ) ;return x ; }
void/**/main X () { r =p
=0;w=sprintf(X X X X X X o
,"char*d=");for ( f=1;f < * d
+143;)if(33-(b=d [ f++ X ])
){if(b<93){if X(! p ) o
=34;for X(i = 35 +
(p?0:1);i<b; i++ ) o
=s();o[ w++ ]
=p?s():34;} else X
{for(i=92; i<b; i
++)o= 32;} }
else o
=10;o [
w]=0 ;
puts(o);}C语言,GCC可以编译通过,VC也可以。