上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 1357 下一页
ddd Read More
posted @ 2019-05-05 10:34 findumars Views(653) Comments(0) Diggs(0)
因为项目使用QVector,太慢了,听说QMap比QVector查找时快,所以写一个小程序试试; 从30000个数据中找5000个 程序运行截图如下: QVector QMap 一样的数据,找一样的数代码如下图: widget.h #ifndef WIDGET_H#define WIDGET_H # Read More
posted @ 2019-05-02 22:00 findumars Views(1897) Comments(0) Diggs(0)
版权声明:本文为博主原创文章,未经博主允许不得转载。欢迎联系我qq2488890051 https://blog.csdn.net/kangkanglhb88008/article/details/89739105先了解如下几点知识和过程: * 冯诺伊曼体系计算机程序指令代码都是提前从硬盘加载进入内 Read More
posted @ 2019-05-02 20:11 findumars Views(2545) Comments(0) Diggs(0)
最近 Google 开源了其内部多年使用的 C++ 代码库 Abseil 作为 C++ 标准库的补充,并会对其进行持续更新,本文对其进行简要介绍。 一句话概括,这个库的特点是用 C++ 11 的代码实现了许多 C++ 14 和 C++ 17 的特性,所以你的编译器也要支持 C++ 11(gcc 4. Read More
posted @ 2019-04-26 18:43 findumars Views(1057) Comments(0) Diggs(0)
1.帮助定义复杂的宏以避免错误 举例来说,假设你需要定义这样一个宏: #define DOSOMETHING() foo1(); foo2(); 这个宏的本意是,当调用DOSOMETHING()时,函数foo1()和foo2()都会被调用。但是如果你在调用的时候这么写: if(a>0) DOSOME Read More
posted @ 2019-04-24 20:35 findumars Views(763) Comments(0) Diggs(1)
上一页 1 ··· 29 30 31 32 33 34 35 36 37 ··· 1357 下一页