摘要: #include <iostream>class Test;typedef void (Test::*Fn)(void);class Test{public: explicit Test() { m_num = 0; m_fn[0] = &Test::Oper1; m_fn[1] = &Test::Oper2; } ~Test() { } void Show(int i) { if ( i > 2 ) { (*this.*m_fn[0])(); ... 阅读全文
posted @ 2013-06-07 02:26 cqfuture 阅读(1111) 评论(0) 推荐(0) 编辑