看板 C_and_CPP 關於我們 聯絡資訊
※ 引述《Keiichi (又下雨了... :~~~)》之銘言: : ※ 引述《[email protected] (1s軌域之逆旋水子)》之銘言: : : 問一下 member function 要如何決定 "this" 在哪裡? : compiler會為member function增加一個參數, : 也就是this指標, 忘記說...如果member function為static時, compiler就不會為其新增this指標的參數, 這也就是為什麼static member function 只能access static data member... ^^* -- ※ 發信站: 批踢踢實業坊(ptt.twbbs.org) ◆ From: 93.c135.ethome.net.tw