宏定义/#argument/##
来源:互联网 发布:淘宝买口红靠谱吗 编辑:程序博客网 时间:2024/05/16 07:25
/*
** 程序1
*/
#include <stdio.h>
#define PRINT(FORMAT, VALUE) /
printf("The value of " #VALUE " is " FORMAT "/n", VALUE); /
printf("The value is: " FORMAT "/n", VALUE)
//#argument结构被预处理翻译为"argument",printf临近字符串自动连接
void main()
{
int x = 0;
PRINT("%d", x+3);
}
/*
** 程序2
*/
#include <stdio.h>
#define ADD_TO_SUM(sum_number, value) /
sum ## sum_number += value
//##把它两边的符号链接成一个符号
void main()
{
int sum5 = 9;
printf("%d/n", ADD_TO_SUM(5, 25));
}
- 宏定义/#argument/##
- 1.3.1 - [defns.argument] - 【定义.自变量】
- argument
- 结合argument的定义看文章的构造
- js中argument argument
- Argument 70
- Lock Argument
- Argument 11
- ARGUMENT (1)
- variable argument
- argument parameter
- argument.callee
- invalid argument
- 宏定义
- 宏定义
- 宏定义
- 宏定义
- 宏定义
- test
- WPF基础之路由事件
- C#操作注册服务卸载服务启动服务停止服务..
- VTK简介及安装
- C#操作DllImport应用
- 宏定义/#argument/##
- 哈佛老师经常给学生这样的告诫
- 透析回调函数
- POI3.6 生成Excel2007 效率低的解决办法
- 数据类型
- 提高开发效率的53个PHP编程技巧.
- java 路径 批处理空格 getRuntime().exec 空格解决办法
- 可变参数举例
- VC数据类型