??????????????????????????й???????????С???????????????????????????????治???????????о???????????????????????????????????????°???????塣???????????????????????????

?????????????????????????????

?????? ???к??????

?????? vs2010?μ?cl????

?????? ??????

???????к??????

???????У????ж????а?????virtual???????й????

???????????????????е????virtual??ж??????????????????class CSubClass : public virtual CBase {}; ????CBase????CSubClass??????????????CBase???????????CBase???????????????????е????

????vs2010?μ?cl????

????????VS2010????????μ????????????C++??????????е??????????????


/d1reportSingleClassLayout


??????????÷??????£???д???????cpp????????????VS2010???????й???“Visual Studio 2010Command Prompt”???л???cpp???????????????????μ?????


cl [filename].cpp /d1reportSingleClassLayout[className]


????cl?????MS?????????[filename].cpp?????????????class?????cpp?????class???????????????????????????cpp???????????????????????[className]??????????????class????????

????????????test.cpp??????????£?


#include <iostream>
using namespace std;

class Base
{
public:
    int a;
    virtual void fcn() {};
};

class Derived : public Base
{
public:
    virtual void fcn2() {};
private:
    int d;
    void fcn3() { }
};

int main()
{
}