2015年4月4日

C++中用成员函数指针模拟多态

摘要: 1.成员函数指针的用法 1 #include 2 using namespace std; 3 class base 4 { 5 public: 6 int test(int lhs,int rhs) 7 { 8 cout*baseFunction)(1,2);//相... 阅读全文

posted @ 2015-04-04 16:00 kyokuhuang 阅读(268) 评论(0) 推荐(0) 编辑

导航