ViewHolder是什么就不解释了。 大家通常怎么写ViewHolder呢? ViewHolder holder = null; if(convertView == null){ convertView = mInflater.inflate(R.layout.xxx null); holder ...
分类:
其他好文 时间:
2014-06-27 22:40:42
阅读次数:
306
如题,不解释
普通青年:
HashMap map = new HashMap;
map.put("name","Lily");
map.put("age","11");
文艺青年:
HashMap map = new HashMap{
{
put("name","Lily");
put("age","11");...
分类:
其他好文 时间:
2014-06-26 11:04:48
阅读次数:
221
中文题不解释
Sample Input
3
AA
BB
CC
ooxxCC%dAAAoen....END
Sample Output
AA: 2
CC: 1
输出病毒出现的次数!
#include
#include
#include
#include
#include
using namespace std;
const int k...
分类:
其他好文 时间:
2014-06-25 08:04:33
阅读次数:
213
题目链接:http://poj.org/problem?id=1195
纯纯的二维树状数组,不解释,只需要注意一点,由于题目中的数组从0开始计算,所以维护的时候需要加1。因为树状数组的下标是不能为1的
代码:
#include
#include
#define N 1030
using namespace std;
int c[N][N];
int cas,n,x,y,a,l,b,r,t...
分类:
其他好文 时间:
2014-06-24 21:15:14
阅读次数:
154
原创作品,允许转载,转载时请务必以超链接形式标明文章原始出处、作者信息和本声明。否则将追究法律责任。http://luxiao1223.blog.51cto.com/2369118/482885Mark!js学习不喜欢js,但是喜欢jquery,不解释。自学jquery的时候,看到一英文词(Call...
分类:
Web程序 时间:
2014-06-12 13:48:41
阅读次数:
258
一.安装 建议安装Windows
7环境,XP中不能运行模拟器,Vista系统支持,但不解释.系统安装完后,直接去微软网站在线安装即可,非常方便,美中不足的是如果你的网速不快,那可能要折磨你半天,快得话,1个小时可以完全搞定.
URL:http://www.microsoft.com/downloa...
Merge two sorted linked lists and return it as
a new list. The new list should be made by splicing together the nodes of the
first two lists.水题不解释,一A,...
分类:
其他好文 时间:
2014-06-10 08:58:37
阅读次数:
191
问题链接:http://acm.hdu.edu.cn/showproblem.php?pid=1495
题目大意:一个瓶子容积s,两个杯子容积分别n,m,并且都没有刻度(不能比对噢!)。相互倒水,求平分的他们的最少倒水次数。
思路:暴力搜索吧。并且求最少,(即最优解),随意上BFS;
思考:状态,转移过程,怎么剪纸。
惨痛的debug,我不解释了。...
分类:
其他好文 时间:
2014-06-08 15:48:26
阅读次数:
234
不解释 ,cmd下直接运行sc create mysql binPath=
"C:\Program Files\MySQL\MySQL Server 5.6\bin\mysqld.exe" start= auto
分类:
数据库 时间:
2014-06-06 11:33:55
阅读次数:
237