摘要:
QMap intToStr; intToStr[1] = "test" for (auto iter = intToStr.begin(); iter != intToStr.end(); ++iter) { //int aa = *iter; QString two = iter.value(); QString test = *iter... 阅读全文
摘要:
QMap intToStr; intToStr[1] = "test" for (auto iter = intToStr.begin(); iter != intToStr.end(); ++iter) { //int aa = *iter; QString two = iter.value(); QString test = *iter... 阅读全文
摘要:
Behind the scenes, QString uses implicit sharing (copy-on-write) to reduce memory usage and to avoid the needless copying of data.QVector也是隐式数据共享的;虽然文 阅读全文
摘要:
1、设置好pdb文件和源代码路径 为了能正确分析Dump文件,我们必须要指定和程序一起出来的PDB文件,如果程序重新被编译了一次,即使代码没有任何变化,之前的PDB文件我们不能再继续使用。 阅读全文
摘要:
The compilation of a C++ program involves three steps: Preprocessing: the preprocessor takes a C++ source code file and deals with the #includes, #def 阅读全文
摘要:
在C/C++语言中,可能我们要书写的一个字符串太长了,放在一行上影响代码的可读性。这时我们就需要多行书写了。 字符串多行书写有两种规则: 1. 在字符串换行处加一个反斜杠’\’,下一行前不能有空格或者Tab键; 2. 使用双引号。 程序示例: #include #include usingnames 阅读全文
摘要:
写的太好了。。 When you convert for example int(12) to unsigned float (12.0f) your processor needs to invoke some calculations as both numbers has different 阅读全文
摘要:
class Lanuage{public: Lanuage(int s) :a(s) { } (operator int)()const//没有函数名代表就是对象本身 { return a; }private: int a;}; 提供了int s = Lanuage(3);Lanuage类型到int 阅读全文
摘要:
qt4: https://gist.github.com/gregseth/9bcd0112f8492fa7bfe7 阅读全文
摘要:
总结一波这998的不得不提的调整代码的心得。 调整代码的背景:现有wps美化代码分散在各个插件里面,导致每次修改一小部分代码,都要全新编译,并且只能跟版本发,所以决定将wps的美化代码整合成一个插件dll,通过接口的方式(纯虚函数),给内核提供方法,这样随时都可以更新dll 学习到的知识点: 1、s 阅读全文
|