//char* tem = (char*)pathOfImg.GetBuffer(pathOfImg.GetLength());opencv cvLoadImage()函数加载的时候。。。。。。。。。试了各种转化的函数什么的,都没有把路径弄对。最后下面的才正确。CString类型转化为const c...
分类:
其他好文 时间:
2014-07-03 20:23:55
阅读次数:
410
今天是一般的加班,没太多要紧的事处理就早点下班,现在我越来越犯无所事事的加班了,有时候甚至怀疑很多人也是无所事事的加班,不知道要省点时间和精力做些更有意义的事上,如果你不知道什么是更有意义的,那找到比当前加班更有意义的事就是最有意义的。今天我再次反思了自己更健康更智慧更富有更个性化的方向,觉得自己应...
分类:
其他好文 时间:
2014-07-03 20:23:18
阅读次数:
203
一、raid什么意思?RAID是“Redundant Array of Independent Disk”的缩写,raid什么意思了?说白了,中文翻译过来通俗的讲就是磁盘阵列的意思,也就是说RAID就是把硬盘做成一个阵列,而阵列也就是把硬盘进行组合配置起来,做为一个总体进行管理,最关键的是这个阵列的...
分类:
其他好文 时间:
2014-07-03 20:24:40
阅读次数:
212
Given inorder and postorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.class Solution...
分类:
其他好文 时间:
2014-07-03 20:25:21
阅读次数:
219
double cross(Point a,Point b){ return a.x*b.y-a.y*b.x;}double mul(Point p0,Point p1,Point p2){ return cross(p1-p0,p2-p0);}double dis(Point a){ ...
分类:
其他好文 时间:
2014-07-03 20:28:07
阅读次数:
195
异步技术有两个:Grand Central Dispatch(GCD):系统管理线程,你不需要编写线 程代码。只需定义想要执行的任务,然后添加到适当的 dispatch queue。GCD 会负责创建线程和调度你的任务。系统直接提供线 程管理,比应用实现更加高效。Operation Queue:Ob...
分类:
其他好文 时间:
2014-07-03 20:27:30
阅读次数:
178
有一个字符串首尾相连(m个字符),有n种字符组成,求一段能使包含n种字符的子串,并使长短最短,时间复杂度要求O(n),空间复杂度O(1)#include int foo(const char* str, int m, int n){ int hit[256], count = 0, begin...
分类:
其他好文 时间:
2014-07-03 20:28:46
阅读次数:
312
对数据进行转换就是对数据的合并、清理和整合。通过转换,能够实现不同的源数据在语义上的一致性。SAP BI 的转换(Transformation) 定义的就是对数据进行处理的规则。当数据从一个BI 对象载入到还有一个BI 对象时,数据是经过转换的。在源对象和目标对象之间创建一个转换,转换将源对象的字段...
分类:
其他好文 时间:
2014-07-03 20:30:44
阅读次数:
203
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2014-07-03 20:32:55
阅读次数:
429
Windows Explorer Shell支持的Overlay Icon最多15个,除去系统使用,只有11个。如果其他程序占用了,那么乌龟SVN就无法显示了。注册表定位到:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Ex...
分类:
其他好文 时间:
2014-07-03 20:34:07
阅读次数:
261
Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution stil...
分类:
其他好文 时间:
2014-07-03 20:34:46
阅读次数:
193
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ...
分类:
其他好文 时间:
2014-07-03 12:10:12
阅读次数:
191
UVALive:https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1504题意:给你一个长度为L的盒子,然后有n个物品,然后给出每个物品的长度,...
分类:
其他好文 时间:
2014-07-03 20:36:08
阅读次数:
250
题目描述There are N tasks and M resources, each task is asked to use some resources and each resource can only be used by at most one task. You are asked ...
分类:
其他好文 时间:
2014-07-03 20:35:23
阅读次数:
274
希尔排序通过比较相距一定间隔的元素来工作,各趟比较所用的距离随着算法的进行而减小,直到只比较相邻元素的最后一趟排序为止。所以希尔排序也叫缩小增量排序。希尔排序使用一个序列h1,h2,....,hn,叫做增量序列,只要h1=1,任何增量序列都是可以的,不过有些增量序列比另外一些增量序列更好。在使用增量...
分类:
其他好文 时间:
2014-07-03 20:37:33
阅读次数:
175
创建四个文件,工程名为Test,分别为Test.creator , Test.config , Test.files , Test.includesTest.creator中写入[General]Test.config配置文件,可为空Test.files添加所有文件例如core/main.c co....
分类:
其他好文 时间:
2014-07-03 20:38:57
阅读次数:
164
动态建树MLE。模仿别人的代码模板各种原因wa后,终于AC。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 #define MAXN 515*70 8 #define NXTN...
分类:
其他好文 时间:
2014-07-03 20:38:17
阅读次数:
153