看板 Programming 關於我們 聯絡資訊
不好意思...問個很笨的問題... int static A(); static int A(); 這兩個函式的宣告是不是一樣啊? static放在型別前後會影響執行結果嗎? 謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.112.24.180
freesamael:在c++裡這兩者都是static function 140.124.183.14 08/24 14:52
freesamael:其他語言我就不清楚了... 140.124.183.14 08/24 14:53
freesamael:但是很少看到有人把static放在型別後 140.124.183.14 08/24 14:54