CPlusPlusThings/english/basic_content/sizeof/blackclass.cpp
2020-07-19 10:38:38 +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;
}