1.首先写一个类继承AsyncTask 如:class DownloadTask extends AsyncTask<Parms, Process, Result>, parms是执行asynctask传入的参数,如:task.execute("First parameter", "Second p ...
分类:
移动开发 时间:
2016-07-11 21:15:03
阅读次数:
240
This chapter lists the errors that may appear when you call MySQL from any host language. The first list displays server error messages. The second li ...
分类:
数据库 时间:
2016-07-11 07:47:06
阅读次数:
591
Given two array of integers(the first array is array A, the second array is arrayB), now we are going to find a element in array A which is A[i], and ...
分类:
其他好文 时间:
2016-07-10 13:54:22
阅读次数:
136
Tuple可以作为集合存储不同类型的数据,初始化实例如下: val tuple = (1,3,3.14,"aa") val third = tuple._3 Tuple 下标访问从1开始, 需要用下划线。 Scala函数还可以返回Tuple类型的值,并接收,如: val (first,second, ...
分类:
其他好文 时间:
2016-07-09 23:33:37
阅读次数:
236
需求展示: 测试效果1 first uiscrollView 宽度 为屏幕宽度 滚动步长 为 scroll 宽度的1/3 分析: 这个是最普通版 无法使每一次滚动的结果子视图居中展示, WA second 测试效果2 uiscrollView 宽度 为 屏幕的 1/3 滚动步长 为 scroll 的 ...
分类:
移动开发 时间:
2016-07-09 16:26:20
阅读次数:
329
map/multimap里放着的都是pair模板类的对象,且按first从小到大排序。 pair 模板: template <class _T1, class _T2> struct pair { typedef _T1 first_type; typedef _T2 second_type; _T ...
分类:
其他好文 时间:
2016-07-09 11:55:21
阅读次数:
204
1029 - Civil and Evil Engineer PDF (English) Statistics Forum Time Limit: 2 second(s) Memory Limit: 32 MB A Civil Engineer is given a task to connect ...
分类:
其他好文 时间:
2016-07-08 21:38:24
阅读次数:
230
while 1>0 --循环begin update T_D_CHANNEL set R_DAT_VAL=DateName(second,GetDate()) --获取当前系统时间的秒数 where dat_kd_id = 'PU_PWH' or dat_kd_id = 'PU_CH_FQC' or ...
分类:
数据库 时间:
2016-07-06 14:45:35
阅读次数:
597
If you go a public caffee shop, they have free wifi. How could you make sure your infomration cannot be read by a second person? Well, in HTTP1.1, You ...
分类:
Web程序 时间:
2016-07-03 00:18:30
阅读次数:
281
1193 - Dice (II) PDF (English) Statistics Forum Time Limit: 3 second(s) Memory Limit: 32 MB You have N dices; each of them has K faces numbered from 1 ...
分类:
其他好文 时间:
2016-07-02 22:55:48
阅读次数:
317