摘要: #include "stdio.h"#include "conio.h"#define MAX#define MAXIMUM(x,y) (x>y)?x:y#define MINIMUM(x,y) (x>y)?y:xvoid main(){int a=10,b=20;#ifdef MAXprintf(... 阅读全文
posted @ 2015-03-08 20:23 梓阳恒为 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: #include #define exchange(a,b){\int t;\t=a;\a=b;\b=t;\}int main(int arge,char *argv){int a=2,b=3;printf("交换前a=%d,b=%d",a,b);exchange(a,b);printf("交换后a... 阅读全文
posted @ 2015-03-08 20:07 梓阳恒为 阅读(187) 评论(0) 推荐(0) 编辑
摘要: register int a=1;明确声明必须要把变量存放在寄存器中,直到变量消失。 一般是默认register,大多数的情况下是不用写register 阅读全文
posted @ 2015-03-08 19:55 梓阳恒为 阅读(2164) 评论(0) 推荐(0) 编辑