2012年3月18日

一道c题的不同解答方法

摘要: 方法如下:用宏替换printf函数 1 #include <stdio.h> 2 #include <stdlib.h> 3 #define printf(s) puts("Begin\n Hello,world!\nEnd") 4 void hello() 5 { 6 printf(" Hello,world!\n"); 7 } 8 int main() 9 {10 hello();11 system("pause");12 return 0; 13 } 用宏替换hello函数 1 #include < 阅读全文

posted @ 2012-03-18 19:55 tilltheendwjx 阅读(214) 评论(0) 推荐(0) 编辑

导航