诸天浩瀚,神魔流转,天苍苍兮云山远,心悠悠兮梦桃源

情人节写一段代码

2009-02-141,201 次阅读

我是用不着了,需要的同学就拿去吧。

提醒:需要在支持unicode的编译器下才能编译通过,例如VS2005、VS2008。

#define 如果 int
#define 那啥 main
#define 听好 (
#define 啊 )
#define 那个 {
#define 就这样 }
#define 这么 string
#define 我 i
#define 嗯 ;
#define 有 =
#define 一生一世 1314
#define 不是 cin
#define 就是 cout
#define 假的 >>
#define 真的 <<
#define 快 while
#define 想说 –
#define 呃 ”
#define 不骗你 endl
#define 相信 return

#include <iostream>
#include <string>

using namespace std;

如果 那啥 听好啊 那个
这么 亲爱的 嗯
如果 我 有 一生一世 嗯
不是假的 亲爱的 嗯
快 听好 我 想说 啊 那个
就是 真的 亲爱的 真的 呃 很爱你 呃真的 不骗你 嗯
就这样 相信 我 嗯
就这样

注:代码中“#define 想说”后面是两个“-”符号,即自减。上面显示上有点问题

作者:紫色竹简 | 分类目录:木甲工房 | 标签:

3 条评论

  1. RustingSword 说:

    不过可能是看习惯了,还是原版的看起来更清晰,这个看起来太费劲了。

  2. codingliyi 说:

    @RustingSword
    算是山寨版的汉编吧,行货的汉编是易语言之流。
    还看见有些人专门写了个头文件,包含了诸如一下的宏定义:
    #define 整数 int
    #define 如果 if
    #define 大于 >
    #define 打印 printf
    #define 系统命令 system
    #define 赋值为 =
    #define 主函数 _tmain
    #define 字符指针 _TCHAR*
    #define 是数组 []
    #define 返回

  3. RustingSword 说:

    这能不能算汉编?

留下评论

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>