1.在res目录下新建目录values-zh-rCN,并在values-zh-rCN目录下新建strings.xml,可以根据安卓系统的操作语言的不同显示相应的语言。2.LogCat(后台日志监控):5个打印级别:verbose详细,debug调试,info通知,warn警告,error错误过滤器增...
分类:
其他好文 时间:
2014-09-20 18:01:59
阅读次数:
296
Strings are constant; their values cannot be changed after they are created String s1 = "Hello";String s2 = "Hello";System.out.println(s1==s2); //true...
分类:
其他好文 时间:
2014-09-20 17:16:59
阅读次数:
185
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:
其他好文 时间:
2014-09-20 14:19:48
阅读次数:
204
Given a singly linked list L: L0→L1→…→Ln-1→Ln,
reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…
You must do this in-place without altering the nodes' values.
For example,
Given {1,2,3,4}, reorder it to ...
分类:
其他好文 时间:
2014-09-20 10:07:27
阅读次数:
162
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:
其他好文 时间:
2014-09-20 07:45:26
阅读次数:
195
sqlite3*db=[DatabaseopenDB];sqlite3_stmt*stmt=nil;NSString*sqlString=[NSStringstringWithFormat:@"insertintoStudent(name,age,gender)values(‘%@‘,%ld,‘%@‘)",studnt.name,(long)studnt.age,studnt.gender];intresult=sqlite3_prepare_v2(db,[sqlStringUTF8String],-1,&a..
分类:
数据库 时间:
2014-09-20 02:21:36
阅读次数:
239
Swift 初见本页内容包括:简单值(Simple Values)控制流(Control Flow)函数和闭包(Functions and Closures)对象和类(Objects and Classes)枚举和结构体(Enumerations and Structures)协议和扩展(Proto...
分类:
编程语言 时间:
2014-09-20 01:02:16
阅读次数:
348
dwExStyle [in] Specifies the extended window style of the window being created. This parameter can be one or more of the following values. WS_EX_ACCEP...
本系列作为Effective JavaScript的读书笔记。
假设需要一个API用来遍历若干元素,像下面这样:
var it = values(1, 4, 1, 4, 2, 1, 3, 5, 6);
it.next(); // 1
it.next(); // 4
it.next(); // 1
相应的实现可以是:
function values() {
var ...
分类:
编程语言 时间:
2014-09-19 21:12:46
阅读次数:
223
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [3,2,1].
Note: Recursive solut...
分类:
其他好文 时间:
2014-09-19 17:42:05
阅读次数:
158