![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
林润庚
程序员一枚,想看看这世界有多大
展开
-
C++中的空类默认包含哪些类成员函数
空类class Empty{}空类包含的函数(6个)class Empty{public:Empty(); // 缺省构造函数//Empty( const Empty& ); // 拷贝构造函数//~Empty(); // 析构函数//Empty& operator=( const Empty& ); // 赋值运算符//Empty* operator&(); // 取址运算符const Empty* operator&() const;原创 2020-05-14 16:37:53 · 375 阅读 · 0 评论 -
C++中截取字符串和识别字符位置
C++中截取字符串可用mid,right,left识别字符位置可用indexOf,lastIndexOf原创 2019-04-25 16:59:35 · 2216 阅读 · 0 评论