maolike

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2019年1月23日

摘要: QMap intToStr; intToStr[1] = "test" for (auto iter = intToStr.begin(); iter != intToStr.end(); ++iter) { //int aa = *iter; QString two = iter.value(); QString test = *iter... 阅读全文
posted @ 2019-01-23 14:51 maolike 阅读(2851) 评论(0) 推荐(0) 编辑

2019年1月22日

摘要: Behind the scenes, QString uses implicit sharing (copy-on-write) to reduce memory usage and to avoid the needless copying of data.QVector也是隐式数据共享的;虽然文 阅读全文
posted @ 2019-01-22 10:24 maolike 阅读(407) 评论(0) 推荐(0) 编辑

2018年12月28日

摘要: 1、设置好pdb文件和源代码路径 为了能正确分析Dump文件,我们必须要指定和程序一起出来的PDB文件,如果程序重新被编译了一次,即使代码没有任何变化,之前的PDB文件我们不能再继续使用。 阅读全文
posted @ 2018-12-28 17:50 maolike 阅读(294) 评论(0) 推荐(0) 编辑

摘要: The compilation of a C++ program involves three steps: Preprocessing: the preprocessor takes a C++ source code file and deals with the #includes, #def 阅读全文
posted @ 2018-12-28 16:34 maolike 阅读(179) 评论(0) 推荐(0) 编辑

2018年12月24日

摘要: 在C/C++语言中,可能我们要书写的一个字符串太长了,放在一行上影响代码的可读性。这时我们就需要多行书写了。 字符串多行书写有两种规则: 1. 在字符串换行处加一个反斜杠’\’,下一行前不能有空格或者Tab键; 2. 使用双引号。 程序示例: #include #include usingnames 阅读全文
posted @ 2018-12-24 10:39 maolike 阅读(17445) 评论(0) 推荐(0) 编辑

2018年12月14日

摘要: 写的太好了。。 When you convert for example int(12) to unsigned float (12.0f) your processor needs to invoke some calculations as both numbers has different 阅读全文
posted @ 2018-12-14 10:20 maolike 阅读(117) 评论(0) 推荐(0) 编辑

2018年12月7日

摘要: class Lanuage{public: Lanuage(int s) :a(s) { } (operator int)()const//没有函数名代表就是对象本身 { return a; }private: int a;}; 提供了int s = Lanuage(3);Lanuage类型到int 阅读全文
posted @ 2018-12-07 12:07 maolike 阅读(125) 评论(0) 推荐(0) 编辑

2018年11月19日

摘要: qt4: https://gist.github.com/gregseth/9bcd0112f8492fa7bfe7 阅读全文
posted @ 2018-11-19 17:31 maolike 阅读(298) 评论(0) 推荐(0) 编辑

2018年11月13日

摘要: (1)表示机构内位域的定义(即该变量占几个bit空间) 阅读全文
posted @ 2018-11-13 16:42 maolike 阅读(139) 评论(0) 推荐(0) 编辑

2018年8月7日

摘要: 总结一波这998的不得不提的调整代码的心得。 调整代码的背景:现有wps美化代码分散在各个插件里面,导致每次修改一小部分代码,都要全新编译,并且只能跟版本发,所以决定将wps的美化代码整合成一个插件dll,通过接口的方式(纯虚函数),给内核提供方法,这样随时都可以更新dll 学习到的知识点: 1、s 阅读全文
posted @ 2018-08-07 19:22 maolike 阅读(537) 评论(0) 推荐(0) 编辑