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
在Build Settings/Swift Complier-Code Generation/Objective-C Bridging Header找到对应的文件路径,删除一般就ok了第二种办法,就新建一个这样命名的.h文件(不推荐使用)
分类:
其他好文 时间:
2014-06-15 22:03:01
阅读次数:
202
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
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
刚刚 部署了ii7的dll的有x86写的,就会出现以下这样的问题 iis 7 x86,Could not load file or assembly 'Name' or one of its dependencies. An attempt was made to load a program wi...
分类:
Web程序 时间:
2014-06-14 23:07:21
阅读次数:
428
Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, .....
分类:
其他好文 时间:
2014-06-14 20:59:07
阅读次数:
188