情景:程序加载dll,dll中的函数调用另一个dll中的导出函数.stringgetName(){stringname="";regmatch(text,&name);returnname;}do{stringm_name=getName();}while(0);当m_name析构的时候,发生异常分析其中的原因,应该是name的内存不够,为了保存name的结果,在regmatch函..
分类:
其他好文 时间:
2014-07-27 14:20:56
阅读次数:
218
情景:程序加载dll,dll中的函数调用另一个dll中的导出函数.stringgetName(){stringname="";regmatch(text,&name);returnname;}do{stringm_name=getName();}while(0);当m_name析构的时候,发生异常分析其中的原因,应该是name的内存不够,为了保存name的结果,在regmatch函..
分类:
其他好文 时间:
2014-07-27 14:20:49
阅读次数:
276
多个cu文件nvcc -cubin -m64 -lcudadevrt -lcublas_device -gencode arch=compute_35,code=sm_35 -o test.cubin -c test.cu -dlinkYou can also do that in two step...
分类:
系统相关 时间:
2014-07-26 16:51:12
阅读次数:
350
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3720题意:在一个矩形区域投掷飞镖,因此飞镖只会落在整点上,投到每个点的得分是Ax+By。矩形区域里面有个多边形,如果飞镖投在多边形里面则得分,求最终的得分期望。即:给定一个矩...
分类:
Web程序 时间:
2014-07-26 16:49:21
阅读次数:
552
http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=37172-sat版题对半径R进行二分,将二分得到的R用2-sat判,如果2R 3 #include 4 #include 5 #include 6 #includ...
分类:
其他好文 时间:
2014-07-26 14:48:00
阅读次数:
260
定义: 就是把已经定义的、有一定功能的操作符进行重新定义,来完成更为细致具体的运算等功能。操作符重载可以将概括性的抽象操作符具体化,便于外部调用而无需知晓内部具体运算过程。就是把操作符(比如'+,-,*,/'这些运算符)赋于新的意义。目的: C++有许多内置的数据类型,包括int,char,do.....
分类:
其他好文 时间:
2014-07-26 14:42:10
阅读次数:
170
Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place.click to show follow up.Follow up:Did you use extra space...
分类:
其他好文 时间:
2014-07-26 14:29:30
阅读次数:
183
To Learn something you need to do it, without the fear of being unsuccessful. I believe in practicality and hence will be accompanying you to the prac...
分类:
系统相关 时间:
2014-07-26 14:09:15
阅读次数:
492
题目:Given a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.F....
分类:
编程语言 时间:
2014-07-26 09:51:47
阅读次数:
215