C++
疯狂的面包
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
函数的匿名参数
2011-05-22 22:12:11函数的匿名参数如 int f(int x, float){ return x;}需要这样的函数的情况:修改了某个接口,这个接口不再需要原来某个参数,为了保持接口的统一 并且不出现编译警告(不用参数当然会有警告)原创 2011-05-22 22:12:00 · 786 阅读 · 0 评论 -
const 疑惑合集
1.const int a = 10; const int *p1 = &a; const int *p2 =const_cast(p1); *p2 = 2; *p1, *p2是2了,为什么a 还是10? 但&a, *p1, *p1在输出的原创 2011-09-11 14:01:22 · 868 阅读 · 0 评论 -
引用的传递方式
class A{public: int x,y,z;};int a;void f(A &refA){ refA.x = 1;}void fx(int &refInt){ refInt = 2;}int main(){原创 2011-09-15 22:21:22 · 707 阅读 · 0 评论 -
从汇编的角度看inline函数与非inline函数
试验的代码如下inline int f(int *pInt) //从*pInt加到100{ int sum = 0; while(*pInt <= 100) { sum += *pInt; (*pInt)++; }原创 2011-09-22 20:24:26 · 2286 阅读 · 0 评论 -
VC12 编译Qt5.2
依赖库icu依赖工具pythonperlrubywin_bisonwin_flex首先要编译好icu 直接打开allinone.sln工程就可以编译了编译完成后bin目录下 有一堆dll 要拷贝到qtbase/bin目录下 方便dll的搜索 避免qt一些依赖icu这个库的dll找不到好了如果依赖的工具也准备好的话就可以配置环境原创 2013-12-15 20:55:39 · 1924 阅读 · 0 评论 -
Boost Signals2 基本用法
http://app.yinxiang.com/l/AAdBCTBt8FpIuKgVh1slcKyrm1X5sTqxr8s/原创 2015-02-14 14:33:09 · 627 阅读 · 0 评论 -
Boost Signals2 Connection
http://app.yinxiang.com/l/AAdWWbBXBwJE15Do8j09Mu9ATFIEBQHsw3o/原创 2015-02-14 16:06:32 · 490 阅读 · 0 评论 -
Qt 延迟刷新View的技巧
#include class RoomTreeWidget : public QTreeView{ Q_OBJECTpublic: RoomTreeWidget(QWidget *parent = 0); ~RoomTreeWidget(); void setVScrollDelayUpdateTime(quint32 mesc)原创 2015-07-11 14:06:43 · 1168 阅读 · 0 评论
分享