討論串[閒聊] 今天面試問的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓5(5推 0噓 20→)留言25則,0人參與, 最新作者allstarschh (allstars)時間14年前 (2011/12/16 01:49), 編輯資訊
0
0
0
內容預覽:
我看到這篇舊的文章. 但不太清楚pa->f(1.0)的行為. 我跑的結果是A::f(double). 前面的. b.f(1.0)會call B::f(complex<double>). 如果是因為A::f(int) A::f(double) 被hide. 所以只能B:f(complex<double
(還有256個字)

推噓20(20推 0噓 33→)留言53則,0人參與, 最新作者cplusplus (沒事多聊天~ 歡迎打屁)時間16年前 (2009/09/10 23:32), 編輯資訊
0
0
0
內容預覽:
其中一題,我覺得蠻有趣的. class A. {. public:. virtual void f(int);. virtual void f(double);. virtual void g(int i=10);. virtual void h();. };. class B: public A.
(還有436個字)
首頁
上一頁
1
下一頁
尾頁