摘要: 求两正整数的最大公约数,用辗转相除法。 1 #include 2 3 #define swap(a,b,type) do{ type t; t=a; a=b; b=t; }while(0) 4 5 int gcd(int a,int b) 6 { 7 int t; 8 as... 阅读全文
posted @ 2015-11-19 17:12 _Bin 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1.需要的头文件:stdarg.h 需要的宏:va_start(a,b) va_arg(a,b) va_end(a) 需要的类型别名: va_list2.基本用法 (1)写函数头1 return_type function_name(first_argument,...); eg1:1 int ... 阅读全文
posted @ 2015-11-17 20:38 _Bin 阅读(266) 评论(0) 推荐(0) 编辑