预处理命令 # 和 ##
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; }
相关文章推荐
- volatile,可变参数,memset,内联函数,宽字符窄字符,国际化,条件编译,预处理命令,define中##和#的区别,文件缓冲,位域
- volatile,可变参数,memset,内联函数,宽字符窄字符,国际化,条件编译,预处理命令,define中##和#的区别,文件缓冲,位域
- 预处理命令中的#和##
- 重拾C语言重要知识之预处理命令
- 预处理标识符#与##
- 预处理命令
- C#中error预处理命令的使用
- C编程之预处理标识符——__LINE__,__FILE__,__DATE__,__TIME__,__STDC__,#,##
- 预处理命令
- C语言预处理命令之条件编译
- 常用预处理命令简介及应用
- C-预处理命令
- 预处理命令
- iOS 高级开发技巧 1.熟悉Objective-C (四) 多用类型常量 少用#define预处理命令
- 拆解GCC命令的预处理-编译-汇编-链接4个阶段
- 预处理命令
- 黑马程序员——ios开发基础之C语言预处理命令与文件操作
- C++中的编译预处理命令
- C++基础之预处理命令
- Keil C 中的预处理命令const