Problem Description
A few days ago, Tom was tired of all the PC-games, so he went back to some old FC-games. "Hudson's Adventure Island" was his favorite which he had played thousands of times. But t...
分类:
其他好文 时间:
2014-08-01 10:53:21
阅读次数:
300
android 点击返回键退出程序的方法
第一种: 再按一次返回键退出程序
private long exitTime = 0;
@Override
public boolean onKeyDown(int keyCode, KeyEvent event) {
if(keyCode == KeyEvent.KEYCODE_BACK && eve...
分类:
移动开发 时间:
2014-07-31 17:17:36
阅读次数:
208
最近在用python写代码,用到了对象数组。在c++中我们要使用能够灵活操作的对象数组,一般会用stl的vector类,该类的push_back方法可以将一个对象的拷贝加入到vector对象中,所以当使用[]下标对vector的元素进行修改时,原来的作为push_back参数的那个对象的值并不会改变。python中类似的方法是列表的append方法,但是要注意此时若加入到列表中的是基础数据类型,则...
分类:
编程语言 时间:
2014-07-31 16:58:56
阅读次数:
196
以Button为例:一般Button有2个状态,按下和正常状态1.在res下新建drawable文件夹,用以存放自己的Drawable文件2.在drawable文件夹下新建按下和正常状态shape文件(是图片资源,则略过此步骤)3.新建Button背景Selector文件4.为Button的back...
分类:
移动开发 时间:
2014-07-31 12:09:26
阅读次数:
250
数位DP。。。。
Palindromic Numbers
Time Limit: 2000MS
Memory Limit: 32768KB
64bit IO Format: %lld & %llu
[Submit] [Go Back] [Status]
Description
A palindro...
分类:
其他好文 时间:
2014-07-31 03:04:56
阅读次数:
247
Round Numbers
Time Limit: 2000MS
Memory Limit: 65536KB
64bit IO Format: %I64d & %I64u
[Submit] [Go Back]
[Status]
Description
The cows, as you know, have no...
分类:
其他好文 时间:
2014-07-31 00:08:55
阅读次数:
350
最近为支付宝忙破了脑袋,以下是我终于成功后的经验以供参考 首先你得先去支付宝官网上下一个code,以供参考. 在配置时尽量不要改动文件,把需要的那几个文件(app_code,imageslog)直接放在你的项目里面,然后在建同步回传页面(call_back_url),异步回传页面(notify_.....
分类:
移动开发 时间:
2014-07-30 00:39:52
阅读次数:
291
Problem Description
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands i...
分类:
其他好文 时间:
2014-07-29 22:05:32
阅读次数:
390
今天遇到这样一个问题,我在Activity-A中用startActivityForResult()方法启动了Activity-B,并且在B中通过setResult()方法给A返回值,由于某些原因不能在setResult()之后立刻调用finish()函数,只能通过用户按Back键自己退出到A。按.....
分类:
其他好文 时间:
2014-07-29 20:39:42
阅读次数:
294
根据其他画面传入的回调方法名,在自己的画面上去调用该方法。这是带参数的方法定义:functioncall_back(funName,result){this.func=function(result){};this.func=eval(funName);}不带参数的方法定义:functioncall_back(funName){this.func=function(){};this.func=eval(funN..
分类:
编程语言 时间:
2014-07-29 15:58:09
阅读次数:
198