1. 此程序与上帖子类似,只不过更好懂些
#define _________ } // 9 }
#define ________ putchar //8 putchar
#define _______ main // 7 main
#define _(a) ________(a); //_(a) putchar(a);
#define ______ _______(){ // 6 7(){
#define __ ______ _(0x48)_(0x65)_(0x6C)_(0x6C) //2 main(){putchar(0x48);putchar(0x65);putchar(0x6c);putchar(0x6c);
#define ___ _(0x6F)_(0x2C)_(0x20)_(0x77)_(0x6F)//3 putchar(0x6f);putchar(0x2c);putchar(0x20);putchar(0x77);putchar(0x6f);
#define ____ _(0x72)_(0x6C)_(0x64)_(0x21) //4 putchar(0x72);putchar(0x6c);putchar(0x64);putchar(0x21);
#define _____ __ ___ ____ _________// 5=2 3 4 9
#include <stdio.h>
_____
//5= 2 3 4 9
//=main(){putchar(0x48);putchar(0x65);putchar(0x6c);putchar(0x6c);
//putchar(0x6f);putchar(0x2c);putchar(0x20);putchar(0x77);putchar(0x6f);
//putchar(0x72);putchar(0x6c);putchar(0x64);putchar(0x21);}
//=main()
//{
//putchar(0x48);
//putchar(0x65);
//putchar(0x6c);
//putchar(0x6c);
//putchar(0x6f);
//putchar(0x2c);
//putchar(0x20);
//putchar(0x77);
//putchar(0x6f);
//putchar(0x72);
//putchar(0x6c);
//putchar(0x64);
//putchar(0x21);
//}
2.
#include <stdio.h>
main()
{
int x=0,y[14],*z=&y;*(z++)=0x48;*(z++)=y[x++]+0x1D;
*(z++)=y[x++]+0x07;*(z++)=y[x++]+0x00;*(z++)=y[x++]+0x03;
*(z++)=y[x++]-0x43;*(z++)=y[x++]-0x0C;*(z++)=y[x++]+0x57;
*(z++)=y[x++]-0x08;*(z++)=y[x++]+0x03;*(z++)=y[x++]-0x06;
*(z++)=y[x++]-0x08;*(z++)=y[x++]-0x43;*(z++)=y[x]-0x21;
x=*(--z);while(y[x]!=NULL)putchar(y[x++]);
//int x = 0;
//int y[14];
//int *z = (int*)&y;
// *(z++) = 0x48; //y[0] = 0x48
// *(z++) = y[x++]+0x1D; //y[1]=y[0]+0x1D=0x65
// *(z++)=y[x++]+0x07; //y[2] = y[1] + 0x07 = 0x6c
// *(z++)=y[x++]+0x00; //y[3] = y[2]
// *(z++)=y[x++]+0x03; //y[4] = y[3] + 0x03 = 0x6f
// *(z++)=y[x++]-0x43; //y[5] = y[4] - 0x43 = 0x2c
// *(z++)=y[x++]-0x0C; //y[6] = y[5] - 0x0c = 0x20
// *(z++)=y[x++]+0x57; //y[7] = y[8] + 0x57 = 0x77
// *(z++)=y[x++]-0x08; //y[8] = y[7] - 0x08 = 0x6f
// *(z++)=y[x++]+0x03; //y[9] = y[8] + 0x03 = 0x72
// *(z++)=y[x++]-0x06; //y[10] = y[9] - 0x06 = 0x6c
// *(z++)=y[x++]-0x08; //y[11] = y[10] - 0x08 = 0x64
// *(z++)=y[x++]-0x43; //y[12] = y[11] - 0x43 = 0x21
// *(z++)=y[x]-0x21; //y[13] = y[12] - 0x21 = 0x00
// x=*(--z); // x = 0
// while(y[x]!=NULL)
// putchar(y[x++]); //输出y数组
}
3.
#include <stdio.h>
#define __(a) goto a; //2(a) goto a;
#define ___(a) putchar(a); // 3(a) putchar(a);
#define _(a,b) ___(a) __(b); //1(a,b) putchar(a);goto(b);;
main()
{
_:__(t)
//_:goto t;
a:_('r',g)
//a:putchar('r');goto g;
b:_('$',p)
//b:putchar('$');goto p;
c:_('l',f)
//c:putchar('l');goto f;
d:_(' ',s)
//d:putchar(' ');goto s;
e:_('a',s)
//e:putchar('a');goto s;
f:_('o',q)
//f:putchar('o');goto q;
g:_('l',h)
//g:putchar('l');goto h;
h:_('d',n)
//h:putchar('d');goto n;
i:_('e',w)
//i:putchar('e');goto w;
j:_('e',x)
//j:putchar('e');goto x;
k:_('\n',z)
//k:putchar('\n');goto z;
l:_('H',l)
//l:putchar('H');goto l;
m:_('X',i)
//m:putchar('X');goto i;
n:_('!',k)
//n:putchar('!');goto k;
o:_('z',q)
//o:putchar('z');goto q;
p:_('q',b)
//p:putchar('q');goto b;
q:_(',',d)
//q:putchar(',');goto d;
r:_('i',l)
//r:putchar('i');goto l;
s:_('w',v)
//s:putchar('w');goto v;
t:_('H',j)
//t:putchar('H');goto j;
u:_('a',a)
//u:putchar('a');goto a;
v:_('o',a)
//v:putchar('o');goto v;
w:_(')',k)
//w:putchar(')');goto w;
x:_('l',c)
//x:putchar('l');goto c;
y:_('\t',g)
//y:putchar('\t');goto g;
z:___(0x0)
//z:putchar(0x0);
//t : 打印H去j;
//j : 打印e去x;
//x : 打印l去c;
//c : 打印l去f;
//f : 打印o去q;
//q : 打印,去d;
//d : 打印 去s;
//s : 打印w去v;
//v : 打印o去a;
//a : 打印r去g;
//g : 打印l去h;
//h : 打印d去n;
//n : 打印!去k;
//s : 打印换行去z;
//z : 空,结束
}
4.
int n[]={0x48, 0x65,0x6C,0x6C, 0x6F,0x2C,0x20, 0x77,0x6F,0x72, 0x6C,0x64,0x21, 0x0A,0x00},*m=n;
main(n){putchar (*m)!='\0'?main (m++):exit(n++);}
vc6.0常规选项无法直接运行这个,不过原理显而易见,就是一个循环输出数组.
5.
#include <stdio.h>
main(){int i,n[]={(((1<<1)<<(1<<1)<<(1<<
1)<<(1<<(1>>1)))+((1<<1)<<(1<<1))), (((1
<<1)<<(1<<1)<<(1<<1)<<(1<<1))-((1<<1)<<(
1<<1)<<(1<<1))+((1<<1)<<(1<<(1>>1)))+ (1
<<(1>>1))),(((1<<1)<<(1<<1)<<(1<<1)<< (1
<<1))-((1<<1)<<(1<<1)<<(1<<(1>>1)))- ((1
<<1)<<(1<<(1>>1)))),(((1<<1)<<(1<<1)<<(1
<<1)<<(1<<1))-((1<<1)<<(1<<1)<<(1<<(1>>1
)))-((1<<1)<<(1<<(1>>1)))),(((1<<1)<< (1
<<1)<<(1<<1)<<(1<<1))-((1<<1)<<(1<<1)<<(
1<<(1>>1)))-(1<<(1>>1))),(((1<<1)<<(1<<1
)<<(1<<1))+((1<<1)<<(1<<1)<<(1<<(1>>1)))
-((1<<1)<<(1<<(1>>1)))),((1<<1)<< (1<<1)
<<(1<<1)),(((1<<1)<<(1<<1)<<(1<<1)<<(1<<
1))-((1<<1)<<(1<<1))-(1<<(1>>1))),(((1<<
1)<<(1<<1)<<(1<<1)<<(1<<1))-((1<<1)<< (1
<<1)<<(1<<(1>>1)))-(1<<(1>>1))), (((1<<1
)<<(1<<1)<<(1<<1)<<(1<<1))- ((1<<1)<< (1
<<1)<<(1<<(1>>1)))+(1<<1)), (((1<<1)<< (
1<<1)<<(1<<1)<< (1<<1))-((1<<1)<< (1<<1)
<<(1<<(1>>1)))-((1<<1) <<(1<< (1>>1)))),
(((1<<1)<< (1<<1)<<(1<<1)<< (1<<1))- ((1
<<1)<<(1<<1)<<(1<<1))+((1<<1)<< (1<<(1>>
1)))), (((1<<1)<<(1<<1) <<(1<<1))+(1<<(1
>>1))),(((1<<1)<<(1<<1))+((1<<1)<< (1<<(
1>>1))) + (1<< (1>>1)))}; for(i=(1>>1);i
<(((1<<1) <<(1<<1))+((1 <<1)<< (1<<(1>>1
))) + (1<<1)); i++) printf("%c",n[i]); }
这个应该是上个帖子的替换后版本,恩,不过在vc下运行好象出了点意外一闪而过,以后再运行就什么也不输出了.
6.
#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;}
这个就是算++--啦,慢慢算吧,哈哈
原理都一样,各有各的表现手法,虽然你细看可能觉得其实就是几个人同从天津去北京,一个从天津南开区的,一个从塘沽区区的,一个从河西区区的....差别很少...