学贵有恒

方有所成

导航

2019年7月12日

c语言中#和##的用法

摘要: 一、一般用法 我们使用#把宏参数变为一个字符串,用##把两个宏参数贴合在一起. 用法: #include<cstdio> #include<climits> using namespace std; #define STR(s) #s #define CONS(a,b) int(a##e##b) i 阅读全文

posted @ 2019-07-12 09:47 CarryBricks 阅读(1107) 评论(0) 推荐(0) 编辑