2013年11月24日
摘要: C/C++ 经常用到的有三种循环,for,while,do while,其实,在平常编写代码的过程中,前两者是经常用到的,一个是知道循环的次数的情况下,第二种是未知循环次数的情况下,那么第三种循环在哪里经常看到呢,在宏定义中。 现在我们要定义一个宏,去执行两个函数。 1 void printf1() 2 { 3 printf("Function printf1\n"); 4 } 5 6 void printf2() 7 { 8 printf("Function printf2\n"); 9 }10 11 #define printf_func() \12 阅读全文
posted @ 2013-11-24 00:32 Green Time 阅读(731) 评论(0) 推荐(0)