昨天要在 std::list 中判断是否存在某一字符串 std::string 。我首先想先迭代+std::string自带的"==" 判断,也就是 list listStr; string s1; for(vector::iterator itr=lis...
分类:
其他好文 时间:
2014-06-15 23:55:32
阅读次数:
386
While reading /XXX/XXX/XXX/img1.png pngcrush caught libpng error: Not a PNG filCould not find file: /Users/XXX/Library/Developer/Xcode/DerivedData/C.....
分类:
其他好文 时间:
2014-06-15 22:56:42
阅读次数:
351
1.accumulate的用法:int sum = accumulate(ivec.begin(), ivec.end(), 0 );第三个参数时累加的初值,更重要的是accumulate对要累加元素的类型一无所知,所以容器内的类型要与第三个实参的类型匹配,或者可转换成第三个实参的类型。2.find...
分类:
其他好文 时间:
2014-06-15 22:42:19
阅读次数:
285
原题地址:https://oj.leetcode.com/problems/minimum-window-substring/题意:Given a string S and a string T, find the minimum window in S which will contain all...
分类:
编程语言 时间:
2014-06-15 22:10:42
阅读次数:
1109
mac svn 删除.svn隐藏文件的命令打开终端,进到所在的目录,然后出入一下代码find . -name ".svn" | xargs rm -Rf1、将文件checkout到本地目录svn checkout path(path是服务器上的目录)例如:svn checkout svn://192...
分类:
其他好文 时间:
2014-06-15 20:51:44
阅读次数:
307
原题地址:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/题意:Given a string, find the length of the longest substring witho...
分类:
编程语言 时间:
2014-06-15 19:51:00
阅读次数:
254
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node.
此题和求二叉树的最短路径几乎一模一样。
public int...
分类:
其他好文 时间:
2014-06-15 16:36:40
阅读次数:
209
printf("member:%d\n",member);//find current signoffsSAFECALL(AOM_ask_value_tags(msg.task,"signoff_attachments", &num, &signoffs));//remove exists revi...
分类:
其他好文 时间:
2014-06-15 07:21:08
阅读次数:
270
1.枚举所有文件夹(递归)void EnumerateFolders (){ WIN32_FIND_DATA fd; HANDLE hFind = ::FindFirstFile (_T ("*.*"), &fd); if (hFind != INVALID_HANDLE_VALU...
分类:
其他好文 时间:
2014-06-14 23:57:43
阅读次数:
376
$(document).ready(function(){ // 切换样式 $("#saturday > li > a").click(function(){ var thisobj = $(this).html(); $("#saturday").find(...
分类:
Web程序 时间:
2014-06-14 23:52:34
阅读次数:
408