在Android平台上捕获Back键的事件,super.onBackPressed()是执行系统的默认动作,就是退出当前activity,我们要做的就是重写onBackPressed()函数, public void onBackPressed(){ Toast.makeText(this,...
分类:
移动开发 时间:
2014-08-07 18:34:20
阅读次数:
265
Problem Description
As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is...
分类:
其他好文 时间:
2014-08-07 09:51:31
阅读次数:
352
记录rman的命令,备忘
连接到目标数据库: BACK (DBID=4048592102)
连接到恢复目录数据库
RMAN> 2> show all; --查看参数
RMAN 配置参数为:
CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 3 DAYS;
CONFIGURE BACKUP OPTIMIZAT...
分类:
其他好文 时间:
2014-08-06 23:11:12
阅读次数:
284
1. Thread with lambda function
基于前一章中的Lambda程序,我们进行了扩展,当前创建5个线程。
#include
#include
#include
#include
int main()
{
std::vector threadVec;
for(int i=0; i<5; ++i){
threadVec.push_back(std::thr...
分类:
编程语言 时间:
2014-08-06 23:09:02
阅读次数:
248
这题是道大模拟= =代码比较长,并且需要注意的细节很多,各种不合法的命令判定简直巨坑= =还有一些容易忽视的地方, 比如 new 操作, 竟然会有 new 1 或 new 0 这种丧心病狂的命令, 结果我刚开始的判定方法就崩了= =最后不得不改成读入一行命令再切割。我觉得最麻烦的操作就是 back ...
分类:
其他好文 时间:
2014-08-06 21:59:22
阅读次数:
195
初始化:1. 默认构造:vector vint;2. 用包含10个元素的数组初始化:vector vint(ia, ia+10);算法:1. vint.push_back(i);2. vint.size();3. vint[i];代码: 1 #include 2 #include 3 using.....
分类:
其他好文 时间:
2014-08-06 21:44:52
阅读次数:
205
SQL中 notand or优先级问题刚刚在项目中遇到这样一个问题,SQL语句如下:select * from LOAN_BACK_LIBRARY where LIBRARY_ID=1 or LIB_ID=1 and STATUS=3我想要的结果的条件是:1. LIBRARY_ID=1 或者 LIB...
分类:
数据库 时间:
2014-08-06 18:29:51
阅读次数:
292
在2-SAT,最让我纠结的还是添加有向线段的函数了void add_clause(int i,int a,int j,int b){ int m=2*i+a; int n=2*j+b; G[m^1].push_back(n); G[n^1].push_back(m);}这里a,b因为只有真假两种情况...
分类:
其他好文 时间:
2014-08-06 14:24:11
阅读次数:
176
今天学的hash。说实话还没怎么搞懂,明天有时间把知识点总结写了,今天就小小的写个结题报告吧!题意: 在n (n.(2)创建vector对象,vector vec;(3)尾部插入数字:vec.push_back(a);(4)使用下标访问元素,cout::iterator it;for(it=vec....
分类:
其他好文 时间:
2014-08-05 22:26:30
阅读次数:
297
安卓activity捕获返回button关闭应用的方法 @Override public boolean onKeyDown(int keyCode, KeyEvent event) { //按下键盘上返回button if(keyCode == KeyEvent.KEYCODE_BACK){ .....
分类:
移动开发 时间:
2014-08-05 22:02:40
阅读次数:
198