2020年10月22日
摘要: C++ 类型转换构造函数、 通过转换构造函数和类型转换运算符来做到类型转换、 主要功能是将其它类型的数据转换成该类类型的对象、 class t { public: //explicit//禁止隐式类型转换 explicit t(int x = 0) :m(x)//类型转换构造函数、可以将一个整型(i 阅读全文
posted @ 2020-10-22 20:07 程耀辉 阅读(156) 评论(0) 推荐(0) 编辑