某些手机底部是在触摸屏内部有软按键,就是如(back,home,menu 等)而有的手机底部(非屏幕内部)有物理按键,就是生产厂商不愿意有google自带的虚拟按键,而做的电容式的物理按键,如(back,home,menu 等)android4.0下可以用此判断是否有物理按键:ViewConfigu...
分类:
移动开发 时间:
2014-07-07 10:11:59
阅读次数:
221
openfire 安装报这个错误 A connection to the database could not be made. View the error message by opening the "\logs\error.log" log file, then go back to fix...
分类:
数据库 时间:
2014-07-06 16:43:00
阅读次数:
284
vector是我使用比较多的一个容器,它相当于一个动态的数组,在STL中给他提供了很多接口,简单易懂,接下来简单的演示一下它是如何使用的。 我一般使用的一些函数接口有size(),reserve(),empty(),begin(),end(),push_back(),find(),erase(...
分类:
其他好文 时间:
2014-07-05 22:27:43
阅读次数:
276
缓存方式: 直接映射 N路关联缓存策略: write through:通写 write back:回写进程类别: 交互式进程(IO密集型) 批处理进程(CPU密集型) 实时进程(Real-time)CPU: 时间片长,优先级低IO:时间片短,优先级高Linux优先级:priority ...
分类:
其他好文 时间:
2014-07-05 22:06:21
阅读次数:
357
1 @Override2 public boolean onKeyDown(int keyCode, KeyEvent event) {3 if (keyCode == KeyEvent.KEYCODE_BACK) {4 moveTaskToBack(...
分类:
移动开发 时间:
2014-07-03 20:03:49
阅读次数:
247
Substrings
Time Limit: 1000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit]
[Go Back] [Status]
Description
You are given a string S which cons...
分类:
其他好文 时间:
2014-07-03 16:52:59
阅读次数:
166
上次看到这个有点晕了,其实这个vector保存的是std::vector#include #include using namespace std;int main(){ std::vector > num; std::vector a(10, 5); num.push_back(...
分类:
其他好文 时间:
2014-07-02 20:14:53
阅读次数:
182
function next(){//前进window.history.forward();}function previous(){//后退window.history.back();}function jump(){//指定前进或后退页面数var num = document.getElement...
分类:
其他好文 时间:
2014-07-02 10:18:47
阅读次数:
215
difkstra + 路径输出
The Toll! Revisited
Time Limit: 3000MS
Memory Limit: Unknown
64bit IO Format: %lld & %llu
[Submit] [Go Back] [Status]
Description
Probl...
分类:
其他好文 时间:
2014-07-02 09:30:51
阅读次数:
371
关于回调: 回调是观察者模式以及反应堆模式的基础 一句话,回调就是一种双向调用模式,什么意思呢,就是说,被调用方在被调用时也会调用对方,这就叫回调。“If you call me, i will call back”。 先看看这个可以说比较经典的使用回调的方式: 背景1:class A 实...
分类:
其他好文 时间:
2014-07-01 12:14:40
阅读次数:
198