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