討論串[問題] 關於#define的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓3(3推 0噓 15→)留言18則,0人參與, 最新作者oberstei (累...)時間15年前 (2010/10/10 20:06), 編輯資訊
0
0
0
內容預覽:
試了一下:. #include <stdio.h>. #define INC_1(z) (++z). #define INC_2(z) ++z. #define SUM_1(a,b) (a+b). #define SUM_2(a,b) a+b. void main(){. int x = 1, y
(還有369個字)

推噓4(4推 0噓 7→)留言11則,0人參與, 最新作者oberstei (累...)時間15年前 (2010/10/10 17:29), 編輯資訊
0
0
0
內容預覽:
C語言程式如下:. #include <stdio.h>. #define INC(z) (++z). void main(){. int x = 1, y = 5;. printf("%d\n", x+INC(y));. x = 1, y = 5;. printf("%d\n", x+++y);.
(還有107個字)
首頁
上一頁
1
下一頁
尾頁