Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2014-12-25 11:25:56
阅读次数:
146
使用场景A中调用B页面,在B中用户做了处理后,将数据回传给A第一步,新建passValueDelegate.h #import@protocolPassSelectDelegate-(void)passValue:(NSDictionary*)value;@end第二步,第一个viewcontrol...
分类:
移动开发 时间:
2014-12-25 09:52:13
阅读次数:
146
32bits系统内存划分:
1. ZONE_DMA 包含低于16MB的内存页框
2. ZONE_NORMAL 包含高于16MB且低于896MB的内存页框
3. ZONE_HIGHMEM 包含从896MB开始于896MB的内存页框
ZONE_HIGHMEM又划分为如下三个部分:
1. VMALLOC区:VMALLOC_START ~ VMALLOC_END
2. 永久内核映射区:...
分类:
其他好文 时间:
2014-12-25 00:16:09
阅读次数:
172
1. 私有方法假设现有的类为MyClass:在类的头文件代码为: @interface MyClass { // 添加变量}- (void)PublicMethod;//公共方法,可以被继承类继承@end而在类的.m文件中,采用类别来实现私有方法,具体操作为:@interface MyClas...
分类:
其他好文 时间:
2014-12-24 21:21:09
阅读次数:
160
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the l...
分类:
其他好文 时间:
2014-12-24 18:05:07
阅读次数:
152
boost::array header;string(header.begin(),header.end())std::vector body(atoi((string(header.begin(),header.end())).c_str()));string headlength(std::to...
分类:
其他好文 时间:
2014-12-24 17:42:33
阅读次数:
145
添加SystemConfiguration.framework 到工程中
对应的.h文件
#import
@interface ViewController : UIViewController
//如果方法前面加+,就相当于类的静态方法,这里要注意一下
- (BOOL) connectedToNetwork;
@end
对应的.m文件
#import "ViewController.h...
分类:
移动开发 时间:
2014-12-24 16:17:02
阅读次数:
170
读取数据库,显示数据foreach($s as $ss){echo '同步中 ...';for( $i = 1 ; $i '; echo $ss['people']; echo ""; flush(); ob_flush(); sleep(1);}echo 'End ....
分类:
Web程序 时间:
2014-12-24 14:40:18
阅读次数:
144
SQL 导出表结构到ExcelSELECT 表名 = case when a.colorder=1 then d.name else '' end, 表说明 = case when a.colorder=1 then isnull(f.value,'')...
分类:
数据库 时间:
2014-12-24 13:27:18
阅读次数:
271
CREATE OR REPLACE PROCEDURE PROC AS
i NUMBER;
j NUMBER;
BEGIN
i := 1;
WHILE i <= 100 LOOP
dbms_output.put_line(i);
i := i + 1;
END LOOP;
FOR j in 1 .. 100 LOOP
dbms_output...
分类:
数据库 时间:
2014-12-24 11:46:34
阅读次数:
159