CPlusPlusThings/basic_content/sizeof/blackclass.cpp
Light-City 8edbbbc5a2 update
2019-11-05 16:56:07 +08:00

19 lines
231 B
C++

/**
* @file blackclass.cpp
* @brief 空类的大小为1字节
* @author 光城
* @version v1
* @date 2019-07-21
*/
#include<iostream>
using namespace std;
class A{};
int main()
{
cout<<sizeof(A)<<endl;
return 0;
}