![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
一粒砂石
背着双肩包的行者!
展开
-
C++ static const 和 static const
1:static成员函数是类的组成部分,但不是任何对象的组成部分,因此static成员函数没有this指针(成员函数的隐含实参); static成员函数也不能声明为const;但是static变量可以被声明为const; static成员函数可以直接访问所属类的static成员,但不能直接访问所属类的非static成员。test_1.hclass test...原创 2019-07-06 17:09:21 · 228 阅读 · 0 评论 -
C++ 重载,隐藏和覆盖透彻理解
重载: 1:同一作用域,函数名相同,参数不同 2:同一作用域,函数名相同,参数相同或者不同,函数返回值不同 【不是重载】 3:同一作用域,函数名相同,参数缺省值不同 【不是重载】隐藏: 1:不同作用域,函数名相同覆盖: 1:不同作用域,函数名相同,参数也相同,同时父类函数必须有virtual#include <iostr...原创 2019-05-22 10:52:52 · 184 阅读 · 0 评论 -
eclipse中使用astyle
原创 2019-08-19 18:16:34 · 873 阅读 · 0 评论 -
通过dll生成lib库文件
pexports工具:https://sourceforge.net/projects/mingw/files/MinGW/Extension/pexports/pexports-0.47/1)pexports-0.47-mingw32-bin.tar.xz解压缩2) 将解压出的pexports.exe工具放到mingw的bin文件夹下(例如:C:\MinGW\bin)3) 在w...原创 2019-09-30 11:26:06 · 483 阅读 · 0 评论