求 H4 申请清单 和步骤。 网上详细的大部分是 2000年的。# Reunion - 探亲与陪读
f*4
1 楼
* C VS C++
* new expression
-operator new, new_hanlder
* Polymorphism
-virtual function
-is this program compile right? run right?
class A{
public: virtual void foo(){}
};
class B:public A{};
int main(){
B b;
b.foo();
}
[我开始说2个都是right,他连问3次"Are you sure?";第三次问的时候,我改了说,compile right, run wrong。但是,后面越想越不对,我返回去说这道题目,2个都是right,很sure]
-how is virtual table is constructed
-running time, how can a call to find the right virtual function
-下面这个设计有啥不好
class A{
public: virtual void foo(){}
virtual void foo
* new expression
-operator new, new_hanlder
* Polymorphism
-virtual function
-is this program compile right? run right?
class A{
public: virtual void foo(){}
};
class B:public A{};
int main(){
B b;
b.foo();
}
[我开始说2个都是right,他连问3次"Are you sure?";第三次问的时候,我改了说,compile right, run wrong。但是,后面越想越不对,我返回去说这道题目,2个都是right,很sure]
-how is virtual table is constructed
-running time, how can a call to find the right virtual function
-下面这个设计有啥不好
class A{
public: virtual void foo(){}
virtual void foo