
C语言
gx_1983
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C语言中#,##和#@
#include #include #define STR(a) #a //把a替换成一个“a”形式的字符串。 #define PRINTF pri##ntf //link the two token together. //合并两个token。 #define MYPRINTF(a,b,c) printf(#a"-"#b"-"#c"\n") /* #define CHAR(a) #原创 2015-11-07 21:42:27 · 5934 阅读 · 1 评论 -
C语言va_list,va_start,va_arg,va_end
C语言va_list,va_start,va_arg,va_end需要注意: 在C语言中使用可变参数不利于编译器的语法检查,在使用时要慎重。#include <stdlib.h> #include <stdio.h> #include <stdarg.h> /*define va_list,va_start,va_arg and va_end.*/void test_va(int原创 2016-03-26 19:16:43 · 393 阅读 · 0 评论