Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-16 23:07:09
阅读次数:
196
一个应用往往包含很多activities.每个activity都应围绕着用户可执行的特定动作来设计,并且可以启动其它activitie.例如,一个email应用可能可能有一个显示新邮件列表的activity.当用户选择一个邮件,一个新的activity被打开以显示邮件内容. 一个activity也....
分类:
移动开发 时间:
2014-07-16 20:59:53
阅读次数:
378
创建一个使用Material主题的应用 1.这里需要先搭建一个应用的运行环境 创建一个AVD: 然后运行这个AVD。 2.创建应用 其中的Min SDK和Target SDK 都选择了L Preivew版本。 3.修改AndroidManifest.xml文件 修改u...
分类:
其他好文 时间:
2014-07-16 20:36:07
阅读次数:
293
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:24:00
阅读次数:
258
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:23:16
阅读次数:
231
Imagine a (literal) stack of plates. If the stack gets too high, it might topple. Therefore, in real life, we would likely start a new stack when the ...
分类:
其他好文 时间:
2014-07-12 08:22:39
阅读次数:
181
adaptor(适配器)
一种标准库类型、函数或迭代器,使某种标准库类型、函数或迭代器的行为类似于另外一种标准库类型、函数或迭代器。系统提供了三种顺序容器适配器:stack(栈)、queue(队列)以及priority_queue(优先级队列)。所有的适配器都会在其基础顺序容器上定义一个新接口。
begin(begin 操作)
一种容器操作。如果容器中有元素,该操作返回指向容器中第一...
分类:
编程语言 时间:
2014-07-11 00:41:21
阅读次数:
315
<!DOCTYPEhtml>
<html>
<head>
<title>test</title>
<scripttype="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"></script>
<scripttype="text/javascript">
$(function(){
..
分类:
Web程序 时间:
2014-07-10 18:42:15
阅读次数:
313
POJ 1160 Post Office (动态规划)
题目大意:
有n个村庄,m个邮局,每个村庄的位置坐标告诉你,现在要将m个邮局设立在这n个村庄里面,问你最小花费是多少?花费为每个村庄到最近的邮局的距离和。
解题思路:
dp[i][j] 记录 i个邮局 j个村庄的最小花费,cost[k+1][j],记录在k+1号村庄到 j 号村庄设立一个邮局的最小花费。
那么:dp[i][j]=min { dp[i][k]+cost[k+1][j] }
最后输出dp[m][n]即可。
但是在k+1号村庄到 j 号村...
分类:
其他好文 时间:
2014-07-10 17:28:24
阅读次数:
168