【发布时间】:2013-12-24 13:55:37
【问题描述】:
我不熟悉在 C++ 中使用宏。我写了一个简短的宏,我不知道它有什么问题。请帮忙。
#include <iostream>
using namespace std;
#define start B(
#define end )
#define B(x) cout<<x;
int main (int argc, char *argv[])
{
start 2014 end
}
【问题讨论】:
-
错误 4 错误 C2059:语法错误:')' 错误 2 错误 C2059:语法错误:';'
-
添加;到最后) => 结束);