混乱代码

来源:互联网 发布:淘宝开零食网店策划书 编辑:程序博客网 时间:2024/04/29 08:22

今天闲着写了一份混乱代码:

#include <iostream>#include <string>using namespace std;#define _ 0x61typedef 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];


0 0
原创粉丝点击