摘要: 为什么C++的空类不能为0 Why is the size of an empty class not zero? To ensure that the addresses of two different objects will be different. For the same reason 阅读全文
posted @ 2021-02-24 18:28 iwetuan 阅读(75) 评论(0) 推荐(0) 编辑
摘要: // C++继承构造.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 //VS2017社区版 #include <iostream> struct Base { Base(int, int) { std::cout << "Base(int, int)" << std::e 阅读全文
posted @ 2021-02-24 18:21 iwetuan 阅读(47) 评论(0) 推荐(0) 编辑