討論串[問題] overloading [] 疑問!!
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
我覺得你的問題在於你可能不太清楚 const member function 的意義。. 所謂的 const member function 就是在宣告時於宣告式後加上 const:. class Foo {. public:. void f(); // normal member function
(還有1927個字)
內容預覽:
目前正在看 C++ How to Program 5th Edition. 第 11.8 章裡面有提到有關 overload [] 的程式. // overloaded subscrpit operator for non-const Arrays;. // reference return cre
(還有535個字)
首頁
上一頁
1
下一頁
尾頁