討論串[問題] parameter 是 template function pointer
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓0(0推 0噓 3→)留言3則,0人參與, 最新作者neigence時間15年前 (2010/08/07 16:49), 編輯資訊
0
0
0
內容預覽:
經過 上一篇文的心得後 透過boost 改進如下. Device.h-----------------------------------------------------. using namespace std;. class Device{. public:. Device();. virt
(還有1718個字)

推噓1(1推 0噓 12→)留言13則,0人參與, 最新作者neigence時間15年前 (2010/08/07 01:36), 編輯資訊
0
0
0
內容預覽:
我剛才解決我的問題了 關於 template和 function pointer的結合. 有興趣和耐心的人 可以看一下以下的程式 (ps.很長哦 非常長). 相信有寫過網路程式的人都遇過這問題,我暫用cin 來代表網路收進來的字串. class Device{. void doA(){ .... }
(還有6819個字)

推噓0(0推 0噓 6→)留言6則,0人參與, 最新作者neigence時間15年前 (2010/08/06 19:15), 編輯資訊
0
0
0
內容預覽:
不好意思請問一下 我想要做到的功能是. 某一個函式中的其中一個參數是 template function pointer. template <class T>. class Transmitter{. public:. Transmitter(T* source);. template <clas
(還有35個字)
首頁
上一頁
1
下一頁
尾頁