下面代码打印结果为()class Base {&nbs...
发布于 2022-03-03 14:15:49
下面代码打印结果为()
class Base { char data[3] public: virtual void f() { cout << "Base::f" << endl } virtual void g() { cout << "Base::g" << endl } virtual void h() { cout << "Base::h" << endl } } int main() { cout << sizeof(Base)<< endl return 0 }
登录后免费查看答案
关注者
0
被浏览
10