题目: Design and implement a data structure for Least
Recently Used (LRU) cache. It should support the following operations:getandset.
get(key)- Get ...
分类:
其他好文 时间:
2014-05-16 05:42:29
阅读次数:
280
参考资料:vbs能否像其他编程语言一样,把写好的代码打包成类库以供调用呢?经过搜索和实验,发现vbs文件之间可以互相调用并共享变量,这样我们就不用再反复地编写轮子了。
以下是一个调用实例:=====1.vbs开始=====dim strstr = "hello world"=====1.vbs结束=...
分类:
其他好文 时间:
2014-05-16 05:03:23
阅读次数:
225
VFlib
开源算法库网站:http://www.cs.sunysb.edu/~algorith/implement/vflib/implement.shtmlNauty
开源算法库网站:http://cs.anu.edu.au/people/bdm/nauty/
分类:
其他好文 时间:
2014-05-13 18:32:10
阅读次数:
289
我发了一个wine的补丁,实现complex::pow的部分重载:http://source.winehq.org/patches/data/104267
HongQian帮我在irc上问了Piotr对这个补丁的看法,他说:
“it generally looks ok but it's possible to implement it with better
precision, so I...
上一节我们只是简单了介绍了Android
Design风格中的ActionBar的简单实用,如添加MenuItem,这节我们会进一步了解ActionBar的其他功能。在Android
Develop的文档(http://developer.android.com/training/implement...
分类:
移动开发 时间:
2014-05-12 09:10:11
阅读次数:
426
KMP 总结1.strstr函数|函数名: strstr|功 能:
在串中查找指定字符串的第一次出现 |用 法: char *strstr(char *str1, char
*str2);|据说strstr和KMP的算法效率差不多|注意:返回的是该字符串第一次出现时的指针,所以如果要计算下标,可以用...
分类:
其他好文 时间:
2014-05-10 02:59:16
阅读次数:
409
ShareThis - By Vikas VermaBluetooth low energy
(BLE) is a feature of Bluetooth 4.0 wireless radio technology, aimed at new,
principally low-power and ...
分类:
其他好文 时间:
2014-05-09 10:07:10
阅读次数:
448
很早看了MFC的一些宏的实现,什么RUNTIME_CLASS, DECLARE_DYNAMIC,
DECLARE_DYNCREATE,IMPLEMENT_DYNCREATE,
etc,看了就烦,现在整理下,免的忘了.代码实现(注:以下宏及其实现取自MFC)DECLARE_DYNAMICDefine:...
分类:
其他好文 时间:
2014-05-09 08:55:20
阅读次数:
405
Unless a class is to be thrown away after a
short period of use, implementing Serializable is a serious commitment that
should be made with care. Extr...
分类:
编程语言 时间:
2014-05-09 07:49:13
阅读次数:
510
#import @interface Car : NSObject{ @public int
speed; int wheels;}// oc方法必须是-开头// oc方法中所有的数据类型必须得用括号括起来//
oc方法中的()就是用来扩住数据类型的-(void)run;@end@implement...
分类:
其他好文 时间:
2014-05-08 12:25:41
阅读次数:
267