User profile: jackandking

User info
User name:jackandking
History
Joined:
Number of posts:3
Latest posts:

virtual and sizeof
guestgulkan, I am afraid that sizeof(B)=4.

virtual and sizeof
sorry for my thoughtless, sizeof(A)=4. Actually, I am confused by: class C : public A{ virtual ...

virtual and sizeof
class A{ virtual void foo(){}; };sizeof(A)=1 class B : public virtural A{ virtual void foo(){}...