0$房天下问答|c++$https://m.fang.com/ask/ask_1920876.html$https://static.soufunimg.com/common_m/m_public/201511/images/asksharedefault.png
packc/pages/ask/detail/detail?askid=1920876
-
c++
1.在dsdv.h中定意class DSDV_Helper: class DSDV_Helper : public Handler { public: DSDV_Helper (DSDV_Agent *a_) { a=a_;} virtual void handle (Event *e) {a->helper_callback(e);} private: DSDV_Agent *a; }; 在dsdv.cc中 helper_=new DSDV_Helper (this); 是什ム意思?why "this" is used here? 2. DSDV_Agent :: DSDV_Agent () : Agent (PT_MESSAGE), seqno_ (0), myaddr_ (0) {...} 是什ム意思? 感謝回答!
更多
免责声明:问答内容均来源于互联网用户,房天下对其内容不负责任,如有版权或其他问题可以联系房天下进行删除。

关注成功