题目链接 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
Java集合01----ArrayList的遍历方式及应用
1.ArrayList的遍历方式
a.一般for循环(随机访问)
Integer value = null;
int size = list.size();
for (int i=0; i<size; i++) {
value = (Integer)list.get(i);
}
b.增强型for循环(for...
分类:
编程语言 时间:
2014-06-20 10:22:41
阅读次数:
240
标记早在HTML3.0时代就已经出现,但那时并不常用,直到CSS的出现,才逐渐发挥出它的优势。而标记直到HTML 4.0时才被引入,它是专门针对样式表而设计的标记。
(division) 简单而言是一个区块容器标记,即与之间相当于一个容器,可以容纳段落、标题、表格、图片,乃至章节、摘要和备注等各种HTML元素。因此,可以把与中的内容视为一个独立的对象,用于CSS的控制。声明时只需要对进行相应...
分类:
其他好文 时间:
2014-06-07 11:57:14
阅读次数:
207
玩了一下mybatis,网上源码说的不太清楚。自己写了一下。希望对大家有用(spring3+mybatis3+mysql)实体类:package
org.my.entity;public class User { private Integer id; private String na...
分类:
数据库 时间:
2014-06-07 07:14:07
阅读次数:
318
Divide two integers without using
multiplication, division and mod operator. 1 class Solution { 2 public: 3 int
divide(int dividend, int divisor) ...
分类:
其他好文 时间:
2014-06-06 17:40:07
阅读次数:
193
--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