马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include <iostream>
using namespace std;
#define add +
#define sub -
#define mul *
#define div /
#define mod %
#define begin \
int main() \
{
#define end \
return 0; \
}
#define print cout <<
#define andprint <<
begin;
print "1 add 2: " andprint 1 add 2 andprint endl;
print "1 sub 2: " andprint 1 sub 2 andprint endl;
print "1 mul 2: " andprint 1 mul 2 andprint endl;
print "1 div 2: " andprint 1 div 2 andprint endl;
print "1 mod 2: " andprint 1 mod 2 andprint endl;
end;
我好像定义了新的 C++ 语法 |