The fix is simple, do the following: 1. Open your project file in NotePad 2. Find the PropertyGroup nodes. 3. Add a new PropertyGroup node. <PropertyG ...
分类:
其他好文 时间:
2016-07-19 09:29:15
阅读次数:
281
Given a permutation which contains no repeated number, find its index in all the permutations of these numbers, which are ordered in lexicographical o ...
分类:
其他好文 时间:
2016-07-19 09:10:07
阅读次数:
323
1.grep文本搜索
2.locate依赖数据库,非实时查找,查找速度快,模糊查找(updatedb)
3.find实时查找,精确匹配,速度慢
find[option][查找路径][查找条件][处理动作]
查找路径:默认为当前路径
查找条件:默认为查找指定路径下的所有文件
处理动作:默认为显示
查找条件
-nam..
分类:
系统相关 时间:
2016-07-17 18:14:29
阅读次数:
178
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example,S = "ADOBECOD ...
Given an array of n positive integers and a positive integer s, find the minimal length of a subarray of which the sum ≥ s. If there isn't one, return ...
分类:
其他好文 时间:
2016-07-17 11:35:25
阅读次数:
135
很久没用Qt了,这次要做一个协议编辑器,在ubuntu 14.04上安装了最新版本的Qt 5.7.0。界面改用扁平化风格,第一感觉还不错。按默认步骤创建了一个gui程序,编译运行,报了一个错:cannot find -lGL。 作为一个用惯了makefile的程序员,知道是少了库文件,而且名字应该为 ...
分类:
其他好文 时间:
2016-07-17 09:37:04
阅读次数:
242
在Linux中,我们经常要查找某个文件,但不知道放在哪里了,针对这种情况,我们可以使用以下这些命令来进行文件的搜索: Which: 查看可执行文件的位置。whereis: 查看文件的位置。locate: 配合数据库查看文件位置。Find: 实际搜寻硬盘查询文件名称。 在这里,我们重点介绍Find命令 ...
分类:
系统相关 时间:
2016-07-17 09:18:21
阅读次数:
208
收到一条短信服务器CPU跑到了90%,赶紧登陆服务器top查看一下,这个叫minerd的程序消耗这么多,这是个什么东西啊?#find/-nameminerd/opt/minerd#lsKHK75NEOiq33minerd在opt目录下,并删除这两个文件psaux|grepminerdSLslJul1534:25/opt/minerd-B-acryptonight-ostratum+tcp://x..
分类:
其他好文 时间:
2016-07-17 02:40:10
阅读次数:
8937
关联容器
本文介绍在关联容器中常见的一些的问题以及提升使用关联容器的建议。
1. 理解相等(equality)和等价(equivalence)的区别。
相等是以operator==为基础的。等价是以operator<为基础的。
例如find的定义是相等,他用operator==来判断,这是比较容易理解的。而等价关系是以“在已排序的区间中对象值的相对顺序”为基础的。也就是说,如果两个值中任何一...
分类:
编程语言 时间:
2016-07-17 00:09:17
阅读次数:
332