数组内指针-current()-key()-prev()-next()-reset()-end()预定义数组$_SERVER()$_ENV()$_REQUEST()$_GET()$_POST()$_FILES$_SESSION()$_COOKIE()$GLOBALS()数组的键/值处理相关函数arr...
分类:
Web程序 时间:
2014-08-18 18:10:03
阅读次数:
213
ViewController.h
#import
@interface ViewController : UIViewController
@property (strong, nonatomic)UICollectionView *collectionView;
@end
ViewController.m
#import "ViewController.h"
@interface...
分类:
其他好文 时间:
2014-08-18 16:32:02
阅读次数:
170
#include 1. max_element(v.begin(), v.end());2. min_element(v.begin(), v.end());3. find(v.begin(), v.end(), 3);4. sort(v.begin(), v.end());5. reverse(p...
分类:
其他好文 时间:
2014-08-18 14:20:42
阅读次数:
170
1 DATA:num TYPE i. 2 CONSTANTS: times TYPE i VALUE 29. 3 DATA: BEGIN OF ih_lgty, 4 lgty TYPE lgtyp, 5 END OF ih_lgty, 6 it_lgty LIKE TABLE OF ih_lg...
分类:
其他好文 时间:
2014-08-18 10:34:03
阅读次数:
183
Problem:
Give a series of IP segments, for example, [0.0.0.1-0.0.0.3], [123.234.232.21-123.245.21.1]...
Now there is a new IP, find which IP segment it's in ?
Solution:
First, we could map the end...
分类:
其他好文 时间:
2014-08-18 00:18:13
阅读次数:
309
var{left表示点 root 没离开栈 vis表示点 root 有没有被访问过} i,n,m,now,time,color,top:longint; v:array[0..10001] of record start:longint;end; e:array[0..100001] of r...
分类:
其他好文 时间:
2014-08-17 22:42:52
阅读次数:
229
有SPFA模板,bellman-ford模板显然是多余的。var e:array[1..maxe]of record a,b,w:longint;end; { 距源点s距离 } dis:array[1..maxn]of longint; { 前驱 } pre:array[1..maxn]o...
分类:
其他好文 时间:
2014-08-17 22:41:02
阅读次数:
209
因为项目需要,同时开发了Linux/Windows版本的程序,后面在实际测试过程中,发现两个版本之间的体现出来的行为有些不一致,大致情况如下:1、Linux下代码能编译通过,Windows下编译通过2、Linux下程序功能正常,Linux程序功能不正确#配置库使用svn,两个系统使用同一份代码后面经...
分类:
其他好文 时间:
2014-08-17 18:22:02
阅读次数:
187
初次使用masmplus 其中在 codesg segment 使用了 start 标记, 并在end处标明了:end start 但是默认的masmplus 会提示 start 为 不认识的 external symbol,如下图 那怎么办, 原来是连接器不同造成的, 这里如果使用了类似的star...
分类:
其他好文 时间:
2014-08-17 18:21:52
阅读次数:
186
#import @interface Child : NSObject@property (nonatomic,assign) int age;-(id) initWithAge:(int) age;@end#import "Child.h"@implementation Child-(id) in...
分类:
移动开发 时间:
2014-08-17 12:58:22
阅读次数:
204