也是不能執行, 因為它輸出以下的對話:
8 F:\C\prog4_16.c parse error before "printf"
8 F:\C\prog4_16.c `main' declared as function returning a function
9 F:\C\prog4_16.c parse error before string constant
9 F:\C\prog4_16.c [Warning] data definition has no type or storage class
10 F:\C\prog4_16.c parse error before string constant
10 F:\C\prog4_16.c [Warning] conflicting types for built-in function `printf'
10 F:\C\prog4_16.c [Warning] data definition has no type or storage class
12 F:\C\prog4_16.c parse error before string constant
12 F:\C\prog4_16.c [Warning] data definition has no type or storage class
那要看你用的什么编译器了....
现在有很多小型编译器是不全的
你把MAIN函数重写几次...
像什么MAIN()
void main()
int main()
都试下..我也刚学
总是这样那样不对
也不知道对不对...呵呵 作者: issa 時間: 2010-4-17 15:56
In "porg4_17.c", seem your compiler try to compiler your code into windows program instead of
a console program. Try to add "/link /system:console" in your compile flags, I assume you are
using visual c compiler. 作者: cyrus_911hk 時間: 2010-4-17 17:55