题目链接 Given an unsorted integer array, find the
first missing positive integer. For example, Given [1,2,0] return 3, and
[3,4,-1,1] return 2. Your algo...
分类:
其他好文 时间:
2014-06-29 07:44:48
阅读次数:
321
1.更改数据库版本号(每次更新都一定要进行版本的升级)
2.更新语句一条一条写,不能并列写
例如:
public void onUpgrade(SQLiteDatabase db, int arg1, int arg2) {
db.execSQL("alter table users add userage integer;alter table users add usersalary ...
分类:
数据库 时间:
2014-06-20 11:43:30
阅读次数:
268
背包附加:进入背包麻烦,背包的功能能按照所在页面进行不同的处理。背包独立:进入背包方便,从背包返回麻烦,可简化背包功能(背包只有选择功能)。页面切换:每个场景带私有数据,增加代码编写难度,个人认为com就是太复杂了,规矩太多。页面切换:根据需要一键切换到任何页面的任何位置的需求,页面切换应有同一的接...
分类:
其他好文 时间:
2014-06-07 11:15:10
阅读次数:
181
玩了一下mybatis,网上源码说的不太清楚。自己写了一下。希望对大家有用(spring3+mybatis3+mysql)实体类:package
org.my.entity;public class User { private Integer id; private String na...
分类:
数据库 时间:
2014-06-07 07:14:07
阅读次数:
318
An Easy GameTime Limit: 2 Seconds Memory Limit:
65536 KBOne day, Edward and Flandre play a game. Flandre will show two
01-strings s1 and s2, the leng....
分类:
其他好文 时间:
2014-06-06 23:24:46
阅读次数:
248
由于C/C++
无符号整型int四字节大小,而JAVA只有有符号int,所以JAVA中的int不可以直接接收C/C++无符号整型int,需要用long来接收。但是用long来接收的话字符序列需要转换,高低位互换,可以用JDK里面Integer的reverseBytes()方法来进行互换:Intege...
分类:
编程语言 时间:
2014-06-06 21:12:04
阅读次数:
349
$(document).bind("click",function(e){ if($(
e.target ).closest(".game-container").length == 0){ alert(111);
$(".game-container").hide();//game-contain...
分类:
Web程序 时间:
2014-06-06 18:23:38
阅读次数:
287
--C语言框架--数据 字节byte 字符char 8 半字half word 短整型 short
int 16 字word 整型int(integer) 32 长整型long int 32 单精度float 32 双字(double word)
双精度double 64↓自定义类型:结构体stru...
分类:
编程语言 时间:
2014-06-06 15:32:21
阅读次数:
367
procedure TForm1.Button1Click(Sender:
TObject);vars:string;i,j,k:integer;arr:Array of array of array of
string;lst:TStringList;beginlst:=TStringlist.C...
分类:
其他好文 时间:
2014-06-05 18:12:58
阅读次数:
266
一、Move操作varpSource,pDest:PChar;len:integer;.......................//一些代码Move(pSource,pDest,len);//错误Move(pSource^,pDest^,len);//正确,根据Move函数:
S:=PCha.....
分类:
其他好文 时间:
2014-06-05 16:40:17
阅读次数:
143