Given two binary trees, write a function to
check if they are equal or not.Two binary trees are considered equal if they are
structurally identical an...
分类:
其他好文 时间:
2014-06-04 18:37:18
阅读次数:
277
json-simple是由是Google开发的Java
JSON解析框架,基于Apache协议。目前版本为1.1项目主页:https://code.google.com/p/json-simple/#JSON.simple_in_PublicationsJava实体类和JSON对象之间的映射如下表:...
分类:
编程语言 时间:
2014-06-03 08:09:52
阅读次数:
367
1.onItemLongClick和onItemClick事件截取当须要同一时候获得一个listview的条目长按事件(onItemLongClick)和点击事件(onItemClick)时,仅仅须要在onItemLongClick事件触发函数中,return
true就可以。2.自己定义Check...
分类:
移动开发 时间:
2014-06-03 06:27:33
阅读次数:
325
Given a binary tree, check whether it is a
mirror of itself (ie, symmetric around its center).For example, this binary tree
is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-05-30 16:13:38
阅读次数:
334
memcached是一款非常优秀的分布式缓存工具,有效提升了按主键检索数据的性能问题。而simple-spring-memcached组件通过与spring框架整合,让memcached的调用变得更加简单。simple-spring-memcached本质上是采用了AOP的方式来实现缓存的调用和管理...
分类:
编程语言 时间:
2014-05-29 20:46:39
阅读次数:
481
安装时遇到了2个问题,特此记录下。问题1:Publickeyfor*.rpmisnotinstalled解决方法:在repo文件中加上"gpgcheck=0",默认没有这一项,看来系统默认是要check的,这个还是头一次知道。问题2:./configure:
error: the HTTP rewr...
分类:
其他好文 时间:
2014-05-29 18:06:50
阅读次数:
225
Original link: How to check if Directory
already Exists in MFC(VC++)?MSDN Links:CreateDirectory functionGetFileAttributes
functionGetLastError functio...
分类:
其他好文 时间:
2014-05-29 17:49:25
阅读次数:
371
SDL 简介什么是SDL?即 Simple DirectMedia
Layer,使用LGPL许可证。免费的跨平台多媒体应用编程接口用于游戏、游戏开发工具、模拟器、样本演示、多媒体应用等它能做什么?视频、音频、事件、CDROM支持、线程、计时器、各种图象文件格式读取、快速绘图、混音、游戏杆支持、网络、...
分类:
其他好文 时间:
2014-05-29 16:37:13
阅读次数:
337
SDL即Simple DirectMedia
Layer,类似DirectX,是完整的游戏、多媒体开发包,但不同的是它跨越几乎所有的平台,有各种语言的接口,多种语言的文档,而这一切都是广大志愿者完成的。目前扩展部分还没有正式的文档,以下为核心部分文档的向导部分。序言关于SDLSDL为方便制作能跨跃L...
分类:
其他好文 时间:
2014-05-29 15:48:46
阅读次数:
309
The tricky thing is how to decide the key for a
hashmap. Especially when you intend to use self-defined objects as key.The
simple rule is you have to ...
分类:
编程语言 时间:
2014-05-29 09:08:40
阅读次数:
362