y) ?x:y\rdefine MINIMUM(x,y) (x>y)?y:x\rvoid main()\r{\rint a=10,b=20;\rffifdefMAX\rprintf("\40: The larger one is %d\n ", MAXIMUM(a," /> y) ?x:y\rdefine MINIMUM(x,y) (x>y)?y:x\rvoid main()\r{\rint a=10,b=20;\rffifdefMAX\rprintf("\40: The larger one is %d\n ", MAXIMUM(a," />

全文预览

C语言经典例析

上传者:徐小白 |  格式:pdf  |  页数:62 |  大小:3999KB

文档介绍
stdio.h"\r^include "conio.h"\rdefine MAX\rftdefine MAXIMUM(x,y) (x>y) ?x:y\rdefine MINIMUM(x,y) (x>y)?y:x\rvoid main()\r{\rint a=10,b=20;\rffifdefMAX\rprintf("\40: The larger one is %d\n ", MAXIMUM(a,b));\r#else\rprintf("\40: The lower one is %d\n",MINIMUM(a,b));.\r/tend if\rffifndef MIN\rprintf("\40: The lower one is %d\n",MINII\/IUM(a,b));\r#else\rprintf("\40: The larger one is %d\n",MAXIMUI\/l(a,b));\rftendif\rftundef MAX\rftifdefMAX\rprintf("\40: The larger one is %d\n ", MAXIMUM(a,b));\r#else\rprintf("\40: The lower one is %d\n",MINII\/IUM(a,b));\rffendif\rdefine MIN\rffifndef MIN\rprintf("\40: The lower one is %d\n",l\/IINII\/IUM(a,b));\r//else\rprintf("\40: The larger one is %d\n ", MAXIMUM(a,b));\r#endif\rgetch();

收藏

分享

举报
下载此文档