add是将传入的参数作为当前List中的一个Item存储,即使你传入一个List也只会另当前的List增加1个元素addAll是传入一个List,将此List中的所有元素加入到当前List中,也就是当前List会增加的元素个数为传入的List的大小eg:result.addAll(list);//把...
分类:
其他好文 时间:
2014-05-09 18:18:10
阅读次数:
275
http://hi.baidu.com/andywangcn/item/cb3e9785d6c124caee083ddb基于C的文件操作在ANSI
C中,对文件的操作分为两种方式,即流式文件操作和I/O文件操作,下面就分别介绍之。一、流式文件操作这种方式的文件操作有一个重要的结构FILE,FILE在...
分类:
编程语言 时间:
2014-05-09 17:24:13
阅读次数:
473
在android软件开发中,ListView是一种经常被用到的组件。当需要用到列表显示的时候,通常都会用到。而使用的过程中也可能出现一些问题。比如,一次性加载过多的Item对于手机有限的内存来说,是一种负担。于是就有了分页加载的技术,一般的说,分页的使用方式有两种,一是在滑动到底部的时候,自动加载下...
分类:
其他好文 时间:
2014-05-05 11:57:06
阅读次数:
387
http://hi.baidu.com/aokikyon/item/b68c7394102c22f229164704http://www.361way.com/hostapd-soft-ap/2933.html
分类:
系统相关 时间:
2014-05-05 11:50:30
阅读次数:
434
public class DbfReader { private string _path;
private OleDbConnection _connection; public DbfReader(string dbfPath) { _path =
dbfPath; Check...
分类:
数据库 时间:
2014-05-05 10:41:06
阅读次数:
994
这两道题,大同小异。
我都是用BFS,在遍历的过程,判断结构是否相同/对称,值是否相同。下面是AC代码: 1 /** 2 * Given a binary tree, check
whether it is a mirror of itself (ie, symmetric aroun...
分类:
其他好文 时间:
2014-05-05 09:48:26
阅读次数:
401
1 #include 2 #include 3 4 void MerageSort(int *A,
int low, int high); 5 void Merge(int *A, int low, int middle, int high); 6 7 int
main() 8 { ...
分类:
其他好文 时间:
2014-05-04 20:44:56
阅读次数:
417
【关闭SublimeText自动更新】 1、找到Preferences ->
Settings-User(设置用户) 2、在最后一个花括号结尾(“}”)前添加一句:”update_check":false,结果如图所示:
分类:
其他好文 时间:
2014-05-04 20:18:37
阅读次数:
313
Post-Recovery Test Run Options Screen When you
clear the Add another recovery operation check box in the Recovery Operation
screen and click next, the...
分类:
其他好文 时间:
2014-05-04 19:37:19
阅读次数:
571
#define PAGE_SIZE 4096
/* these are not to be changed without changing head.s etc */
#define LOW_MEM 0x100000
extern unsigned long HIGH_MEMORY;
#define PAGING_MEMORY (15*1024*1024)
#define PAGING_PAG...
分类:
系统相关 时间:
2014-05-04 18:15:51
阅读次数:
441