以上代码使用VC编译成32位可执行程序,请问:nLenA、nLenAObject、nLenB、nLenAObject、nLenC、nLenCObject的值分别为( )
发布于 2022-03-03 16:48:04
class t_classA { public: t_classA() {} ~t_classA() {} } class t_classB { public: t_classB() {} virtual ~t_classB() {} } class t_classC : public t_classA, public t_classB { public: t_classC() {} virtual ~t_classC() {} } int nLenA = sizeof(t_classA) t_classA oA int nLenAObject = sizeof(oA) int nLenB = sizeof(t_classB) t_classB oB int nLenBObject = sizeof(oB) int nLenC = sizeof(t_classC) t_classC oC int nLenCObject = sizeof(oC)
请问:nLenA、nLenAObject、nLenB、nLenBObject、nLenC、nLenCObject的值(32位机器)分别为()
登录后免费查看答案
关注者
0
被浏览
11