??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他好文 时间:
2014-05-22 12:24:38
阅读次数:
236
Spring为我们提供了:org.springframework.web.servlet.HandlerInterceptor接口,org.springframework.web.servlet.handler.HandlerInterceptorAdapter适配器,实现这个接口或继承此类,可以非常方便的实现自己的拦截器。有以下三个方法:Action之前执行public boolean preH...
分类:
编程语言 时间:
2014-05-22 11:53:48
阅读次数:
241
【原题】
3198: [Sdoi2013]spring
Time Limit: 40 Sec Memory Limit: 256 MB
Submit: 253 Solved: 95
Description
Input
Output
Sample Input
3 3
1 2 3 4 5 6
1 2 3 0 0 0
...
分类:
编程语言 时间:
2014-05-22 09:50:42
阅读次数:
394
当我们想让自己的属性设置保存下来,这时就需要SharedPreferences。
上面这个小程序,音乐状态是保存下来的。使用的上一次退出的状态。
进入DDMS,data文件下的data文件中,找到自己的包名文件,双击打开,有shared_prefs文件,里面有xml文件,这就是配置文件。
本程序使用了android的上下键,同常我们的模拟器的方向键是不能用的,这是就需要我们打开它,在C盘下找到文件 .android,双击avd文件,找到你的模拟器的文件夹,双击打开,找到config.ini,打开,修改arm...
分类:
移动开发 时间:
2014-05-22 08:55:22
阅读次数:
347
文件配置如下:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xsi:sch...
分类:
编程语言 时间:
2014-05-22 07:38:58
阅读次数:
388
一:上图,不清楚的看代码注解,很详细了二:具体代码窗体代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using Sy...
题目:从上往下打印出二叉树的每个节点,同一层的节点按照从左到右的顺序打印。分析:其实就是按层的遍历方式#include #include using
namespace std;struct BinaryTree{ int data; BinaryTree* lchild; Bin...
分类:
其他好文 时间:
2014-05-20 10:13:47
阅读次数:
242
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Data;using
System.Data.SqlClient;namespace AddressBook{...
分类:
数据库 时间:
2014-05-20 10:08:21
阅读次数:
328
for i in [n+1 N] M=rand(1,i) if(M<=n) swap the
ith and Mth
data证明方法:1.初始情况,当尚未选择时,出现在pool中的n个元素的概率相同都是1,证明当第n+1葛元素以n/(n+1)的概率被选中时,前n个元素在pool中的概率为...
分类:
其他好文 时间:
2014-05-20 09:43:42
阅读次数:
294
今天准备在 @zhangkai05
写的小工具model_sql基础上,进一步完善功能,使其更加自动化。方便建模人员开发etl任务。源代码更改后 ,会发布到
git(url地址)上,逐步完善。描述现状及问题团队 数据仓库建模在2013年下开始使用 oracle sql developser data...
分类:
数据库 时间:
2014-05-20 08:08:37
阅读次数:
643