您的位置:首页 > 其它

预处理命令 # 和 ##

2013-11-16 08:29 162 查看
// stl9.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#define contact(x,y) x##y
#include "iostream"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
int xy=10;
int i=1;
cout<<contact(x,y)<<endl;
#ifdef DEBUG
cout << "This is the test version, i=" << i << endl;
#else
cout << "This is the production version!" << endl;
#endif

return 0;
}

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