zoukankan
html css js c++ java
宏定义的 # 和##
C++/C 宏定义(define)中#和 ## 的含义
##是连接符号,把参数连接在一起
#define
FUN
(
arg,x
)
arg##x
则 FUN(ABC,1)
等价于 ABC1
使用场景主要 是 给多个 变量 命名,这样可以有效的防止重复,当然,也需要看是怎么输入的了。
而
#是字符串化的意思,出现在宏定义中的#是把跟在后面的参数转成一个字符串;
#define
PRINT
(
x
)
printf
(
"%s "
,#
x
)
PRINT(stultz)
输出 stultz
查看全文
相关阅读:
Object有哪些方法?
去除掉myeclipse2017页面右上角的图片
报错 IllegalArgumentException occurred calling getter of cn.itcast.entity.Customer.cid
如果在applicationContext.xml中没有配置bean的属性,那么也会导致空指针异常
报错HTTP Status 500
srm开发(基于ssh)(4)
报错HTTP Status 500
HTTP Status 500
数字
算法总结——树状数组
原文地址:https://www.cnblogs.com/Stultz-Lee/p/6709391.html
最新文章
重载操作符??
字符串__各种?
VS10_慢_优化
CSDN_博客__WapPc
CSDN_帖子__WapPc
ubuntu安装Qt5
QMouseEvent 的坐标__Win
0.00-050613_ZC_Chapter4_20160119
UNIX shell 学习笔记 一 : 几个shell的规则语法对比
linux 进程间通信
热门文章
linux 系统调用exec()
系统调用wait()
linux 系统调用fork()
ACE_Reactor类
sleep() 函数
ACE_INET_Addr类 API
clearcase command (linux 常用命令)
Makefile系列之五 :函数
报错org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [bean.xml]
crm开发(基于ssh)(五)
Copyright © 2011-2022 走看看