题目链接 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 查看各个项目的Project ID编号
mysql -uroot -h10.10.2xx.xx
show databases;
use bugfree2;
desc bf_TestProject;
select ProjectID,ProjectName from bf_TestProject;(查询结果如下)
2 在/va...
分类:
其他好文 时间:
2014-06-20 12:19:19
阅读次数:
262
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
玩了一下mybatis,网上源码说的不太清楚。自己写了一下。希望对大家有用(spring3+mybatis3+mysql)实体类:package
org.my.entity;public class User { private Integer id; private String na...
分类:
数据库 时间:
2014-06-07 07:14:07
阅读次数:
318
Demo:Login1.创建一个UserLogin类。package com{ [Bindable]
public class UserLogin { public var logUserNam:String=""; //用户名 public va...
分类:
其他好文 时间:
2014-06-07 06:57:42
阅读次数:
235
jQuery触屏插件:Tap,使用方法非常简单,例:$("#domid").tap(function(){
alert("You tapped me! -- by"+this.innerText);});依赖jquery 1.7+01$.fn.tap =
function(fn){02 va...
分类:
Web程序 时间:
2014-06-05 19:17:55
阅读次数:
413
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