摘要: 今天在写一个类的继承,在调试的时候,虚函数的特点并没有体现出来,让我很是不解,用了两个编译器,结果都是一样的。 类的代码是这样的: 1 #ifndef CLASSBRASS_H_INCLUDED 2 #define CLASSBRASS_H_INCLUDED 3 #include <iostream> 4 #include <cstdlib> 5 6 using namespace std; 7 //extern int a; 8 class Brass 9 {10 private:11 char *name;//the name of this a... 阅读全文
posted @ 2012-10-11 23:14 Matrix_R 阅读(1141) 评论(0) 推荐(0) 编辑