討論串[問卦] 學會c語言就翻身的八卦
共 6 篇文章
內容預覽:
===========================================================. 亨 我要平反. VS 2010上 main前面不加int 編譯hello world一樣可以過. http://imgur.com/IDAKisA. 只是要void就是了. ==
(還有567個字)
內容預覽:
幫原po平反XD. -----------------. ~/tmp$ cat hi.c. #include <stdio.h>. main(void). {. printf("Hello! World!\n");. }. ~/tmp$ gcc hi.c -o hi -v. Using built-
(還有4979個字)
內容預覽:
剛閉關深造去一個月回來.... 很晚了,現在回應該沒太多人看到,隨便吧.. 其實就算你只用 main() 還是會過.... LLVM Clang. http://postimg.org/image/j02qmoojf/. main 前面要 int 是因為如果你在函式裡下了 return,. 那會傳回
(還有103個字)