07 2012 档案

摘要:(很基础,本人菜鸟,大师勿喷,不过欢迎指正错误或补充)不解释,先上例子:class A{public: virtual void print ()=0; virtual void v_cname() { cout << "class A print by v_cname" << endl;} void cname() { cout << "class A print by cname" << endl;}};class B : public A{public: void print (){ cout < 阅读全文
posted @ 2012-07-21 11:30 木lin木 阅读(1039) 评论(1) 推荐(0) 编辑