摘要: explicit 这个单词是显式的意思,在C++中用于声明构造函数不允许被隐式调用,对应的隐式情况就是 Base A = "haha"; Base B = 1000; 这种用赋值的方式隐式调用构造函数或者拷贝构造函数对对象进行初始化。 阅读全文
posted @ 2019-01-08 14:48 zengzhaocheng 阅读(230) 评论(0) 推荐(0) 编辑
摘要: __declspec(dllexport) extern "C" class __declspec(dllexport) Chahahaha { } 用来输出dll 阅读全文
posted @ 2019-01-08 11:42 zengzhaocheng 阅读(112) 评论(0) 推荐(0) 编辑