Re: [問題] 請問在DEV C++底下為什麼...

看板C_and_CPP作者 (燒賣)時間14年前 (2010/03/16 19:53), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串2/2 (看更多)
※ 引述《partywei626 ( )》之銘言: : 請問,為什麼在dev c++下 : void main(void) : 這種寫法會被工具建議改成 : int main()才可編譯 ISO C++ 2003 標準 3.6.1 main function: It shall have a return type of type int, but otherwise its type is implementation-defined. 所以編譯器建議你照標準的寫法做。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.124.182.92

03/16 19:54, , 1F
感謝
03/16 19:54, 1F
文章代碼(AID): #1Bdt50qv (C_and_CPP)
文章代碼(AID): #1Bdt50qv (C_and_CPP)