Android-SQLite商业化数据库操作
一 具体的数据操作
增
/**
* 插入用户实例
* @param pUser
* @return
*/
public long insertUser(User pUser)
{
if (mSqLiteDatabase != null && pUser !...
分类:
移动开发 时间:
2015-06-24 19:00:21
阅读次数:
228
def hanoi(n, a, b, c):
if(n == 1):
print(a, '-->', c)
return
hanoi(n - 1, a, c, b)
print(a, '-->', c)
hanoi(n - 1, b, a, c)
# Output of hanoi(3, 'A', 'B', 'C'):
# A --> C
# A --> B
# C --> B
...
分类:
编程语言 时间:
2015-06-24 18:57:51
阅读次数:
130
public string GetLogo() { string logo = ""; if (!File.Exists(@"C:\bitmap.bmp")) return null; BitmapData data = G...
luabind导出字符串 不能导出char* 会有问题 应该是字符串连接的时候出错了 static _TCHAR* pRetChar = new _TCHAR[10]; memcpy(pRetChar,szName,10); return NetE::wtoutf8(pRetChar); //WC....
分类:
其他好文 时间:
2015-06-24 18:25:28
阅读次数:
110
#apache安装函数
functionapache_ins{
#定义日志变量为局部变量
localIN_LOG=$LOGPATH/${logpre}_apache_install.log
echo
#httpd_inf="/tmp/httpd_ins.txt"
[-f$httpd_inf]&&return
#开始编译apache
echo"installinghttpd..."
cd$IN_SRC
rm-frhttpd-$APA_VER
tarxfh..
分类:
Web程序 时间:
2015-06-24 16:47:59
阅读次数:
242
1. reverse /**
* @Description: reverse a string.
* @param str the String to reverse, may be null
* @return reversedStr the reversed String, null if null String input
*/
publi...
分类:
其他好文 时间:
2015-06-24 16:32:37
阅读次数:
129
QuestionGiven a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).For example:
Given binary tree {3,9,20,#,#,15,7}, 3
/ 9 20
/...
分类:
其他好文 时间:
2015-06-24 16:30:04
阅读次数:
97
#58 Length of Last Word
Given a string s consists of upper/lower-case alphabets and empty space characters '
', return the length of last word in the string.
If the last word does not exist,...
分类:
其他好文 时间:
2015-06-24 16:22:21
阅读次数:
141
RedirectResult:运行重新导向到其他网址,在RedirectResult的内部,基本上还是以Response.Redirect方法响应HTTP 302暂时导向。eg:public ActionResult Redirect(){return Redirect("/Home/NewInde...
分类:
其他好文 时间:
2015-06-24 16:11:26
阅读次数:
160
$.fn.datebox.defaults.formatter = function (date) { var y = date.getFullYear(); var m = date.getMonth() + 1; var d = date.getDate(); return y + '/' +....
分类:
其他好文 时间:
2015-06-24 16:05:00
阅读次数:
174