Use of virtual inheritance outside diamond inheritance problem to allow leapfrogging

后端 未结 0 1465
孤城傲影
孤城傲影 2021-01-30 03:44

Consider the following program:

#include 
#include 

class B
{
public:
    int n;

    B() : n(0) {}
    B(int m) : n(m) {}
};

clas         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题