討論串[問題] std::exception 使用上的問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 8→)留言9則,0人參與, 最新作者ireullin (raison detre)時間14年前 (2011/09/20 13:58), 編輯資訊
0
0
0
內容預覽:
感謝版友 hilorrk 的解答. Q1: pointer、reference才有dynamic polymorphism. Q2、Q3: copy constructor. 但是這樣我卻衍生出了另外一個問題. 為什麼pass by reference的狀況下. 會呼叫到 copy construc

推噓1(1推 0噓 2→)留言3則,0人參與, 最新作者ireullin (raison detre)時間14年前 (2011/09/16 12:05), 編輯資訊
0
0
0
內容預覽:
請問一下各位. 小弟在使用 std::exception 有一些疑問想請教一下. 以下是我的程式碼. class Print. {. private:. std::string m_fun;. public:. Print(const std::string& fun){m_fun=fun; std
(還有1387個字)
首頁
上一頁
1
下一頁
尾頁