下面的代碼工作正常混亂宏觀
#define open {
#define close }
#include<stdio.h>
#define int char
main()
open
int a ;
printf("This is testing code");
close
,但如果我換行
#include<stdio.h>
#define int char
爲
#define int char
#include<stdio.h>
它拋出很多錯誤這樣
In file included from /usr/include/stdio.h:36,
from print.c:19:
/usr/include/bits/types.h:35: error: both 'short' and 'char' in declaration specifiers
/usr/include/bits/types.h:37: error: both 'long' and 'char' in declaration specifiers
/usr/include/bits/types.h:42: error: both 'short' and 'char' in declaration specifiers
/usr/include/bits/types.h:43: error: both 'short' and 'char' in declaration specifiers
.................................................
so and so
其實stdio.h裏面發生了什麼?
不是應該的#include –
codaddict
2010-03-09 12:19:26