2020年4月6日

C++之保护和私有构造函数与析构函数

摘要: 原文:http://blog.chinaunix.net/uid-22312037-id-3811654.html 参考:http://blog.sina.com.cn/s/blog_4c4d6e740100upwp.html 一、构造函数1、保护 构造函数定义为protected后,就意味着你不能 阅读全文

posted @ 2020-04-06 17:46 lh03061238 阅读(693) 评论(0) 推荐(0)

C++中explicit关键字的使用

摘要: 原文:https://www.jianshu.com/p/f05073044daf 详细参考:https://blog.csdn.net/l2563898960/article/details/97769569 1.explicit函数介绍 作用:explicit构造函数是用来防止隐式转换的 实例1 阅读全文

posted @ 2020-04-06 17:39 lh03061238 阅读(707) 评论(0) 推荐(0)

导航