Given a stringSand a stringT, count the number
of distinct subsequences ofTinS.A subsequence of a string is a new string which
is formed from the orig...
分类:
其他好文 时间:
2014-05-10 19:10:58
阅读次数:
389
"; }}/* * 分析: 由一周为一个轮回。
如果刚好有偶数个周,数组高大于宽,则有$col/2次轮回,若宽大于高则 有$row/2个轮回。 如果未奇数个周,则有$len/2+1个周。 */function
Printarrayincircle($arr) { $col = count...
分类:
其他好文 时间:
2014-05-10 08:10:37
阅读次数:
285
map是键-值对的集合,可以理解为关联数组,可以使用键作为下标来获取一个值本文地址:http://www.cnblogs.com/archimedes/p/cpp-map.html,转载请注明源地址。map对象的定义使用前添加map头文件,必须分别指明键和值的类型:mapword_count;map...
分类:
编程语言 时间:
2014-05-10 07:03:58
阅读次数:
397
1.memmove函数原型:void *memmove(void *dest, const
void *source, size_t count)返回值说明:返回指向dest的void
*指针参数说明:dest,source分别为目标串和源串的首地址。count为要移动的字符的个数函数说明:memm...
分类:
其他好文 时间:
2014-05-10 06:18:35
阅读次数:
226
用asp打开光驱!
Set oWMP = CreateObject("WMPlayer.OCX.7")
Set colCDROMs = oWMP.cdromCollection
if colCDROMs.Count >= 1 then
For i = 0 to colCDROMs.Count - 1
colCDROMs.Item(i).Eject
Next ' cdr...
分类:
Web程序 时间:
2014-05-10 04:52:15
阅读次数:
309
tableView 实现的方法 无分组的cell
#pragma mark - Table view data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return self.contacts.count;
}
- (UITable...
分类:
移动开发 时间:
2014-05-09 21:03:32
阅读次数:
424
find / –name sqlplus iostat –d 2 iostat和iowait详细解说
如果你想对硬盘做一个IO负荷的压力测试可以用如下命令 time dd if=/dev/zero bs=1M count=2048 of=direct_2G
此命令为在当前目录下新建一个2G的文件 我...
分类:
系统相关 时间:
2014-05-09 20:31:22
阅读次数:
547
/* reference
http://nehe.gamedev.net/article/using_gluunproject/16013/*/#include //
windows系统要加这个。因为下面2个头文件的一些宏是在这个文件中定义的#include #include //这...
分类:
其他好文 时间:
2014-05-09 19:55:22
阅读次数:
365
//定义一个委托 public delegate int DoSomething(int
count); //BeginInvoke 的回调函数 private static void Execute(IAsyncResult async) ...
分类:
Web程序 时间:
2014-05-09 19:51:27
阅读次数:
422
一、 基本简介ARC是自iOS 5/Mac OS X
10.7之后增加的新特性,消除了原先手动管理内存的烦琐,编译器会自动在适当的地方插入适当的retain、release、autorelease语句。你不再需要担心内存管理,因为编译器为你处理了一切ARC
是编译器特性,而不是 iOS 运行时特性,...
分类:
其他好文 时间:
2014-05-09 15:28:11
阅读次数:
367