update dir

This commit is contained in:
light-city
2019-07-21 11:41:27 +08:00
parent 75dcf11c89
commit 9d90e047fd
32 changed files with 1389 additions and 0 deletions

18
sizeof/blackclass.cpp Normal file
View File

@@ -0,0 +1,18 @@
/**
* @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;
}