C++空类的大小 C++空类的大小为什么不为0?先来看测试程序的输出。#include <iostream>using namespace std;class NoMembers{};int main(){ NoMembers n; // Object of type NoMembers. cout << "The size of an object of empty class is: " C/C++ 2023-12-24 36 点赞 0 评论 54 浏览