您的位置:首页 > 编程语言

混乱代码

2014-03-02 14:08 183 查看
今天闲着写了一份混乱代码:

#include <iostream>
#include <string>
using namespace std;
#define _ 0x61
typedef string __;
#define ___ cout
#define ______ main
#define _______ int
#define _c char
#define ________ {
#define _________ }
#define __________ return
#define ___________ (
#define ____________ )
_______ ______ ___________ ____________
________
__ ____;
____ += _-62;
____ += -~-~-~-~-~-~-~-~_;
____ += -~-~-~-~-~-~-~-~-~-~-~-~-~_;
____ += -~-~_;
____ += -~-~-~-~-~-~-~-~-~-~-~_;
____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
____ += -~-~-~_;
____ += -~-~-~-~_;
___ << ____<<" ";
__ _____________;
_____________ += _-37;
_____________ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____________ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____________ += -~-~-~_;
_____________ += -~-~-~-~-~-~-~-~_;
_____________ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____________ += '.';
_____________ += -~-~-~-~-~-~-~_;
_____________ += _-35;
___ << _____________<<'\n';
___ << (_c)0x69<<(_c)0x6E;___ << (_c)0x74<< (_c)0x20\
<< (_c)0x6D << (_c)0x61 << (_c)0x69 << (_c)0x6E\
<<(_c)0x28<<(_c)0x29<<'\n';
___ << (_c)0x7B <<'\n';
___ << " ";
__ _____;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~_;
_____ += _-57;
_____ += _____[6]-6;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += -~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~_;
_____ += _____[7];
_____ += _____[6]+1;
_____ += _____[13]+18;
___ << _____<<'\n'<<" ";
___ << (_c)0x72 << (_c)0x65 << (_c)0x74 << (_c)0x75 << (_c)0x72 << (_c)0x6E << (_c)0x20<<"0;"<<'\n';
___ << (_c)0x7D;
__________ 0;
_________
运行结果如下:
#include <stdio.h>

int main()

{

  printf("xust");

  return 0;

}

注释:

混乱代码主要会用到一些#define 宏定义

然后就是需要了解下面几个公式:

1.  i++  = -~i;

2. arr[6] = 6[arr];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: