摘要: 例如 class A { public: A() { int *a; a = new int; } }; 这种情况下无法访问新创建的变量。 阅读全文
posted @ 2019-11-06 17:47 轶默 阅读(217) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/8020113/c-include-guards 阅读全文
posted @ 2019-11-05 01:23 轶默 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 版权声明:本文为CSDN博主「Arururururu」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。原文链接:https://blog.csdn.net/unirrrrr/article/details/81252943 阅读全文
posted @ 2019-11-05 01:17 轶默 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 形参不同(个数/类型/顺序) 不能仅通过返回值的不同重载函数。 转自https://blog.csdn.net/weixin_42837024/article/details/82494053 阅读全文
posted @ 2019-11-05 01:12 轶默 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 纯虚析构函数也要实现。 阅读全文
posted @ 2019-11-02 17:52 轶默 阅读(71) 评论(0) 推荐(0) 编辑