码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
PHP的一些 有用但不常用的函数记录
1. microtime() 当前 Unix 时间戳以及微秒数。 connect("127.0.0.1", 11211);$time_start = microtime_float();//保存数据for($i = 0; $i set("key$i",$i,0,3);}$time_end = mi....
分类:Web程序   时间:2014-07-10 10:28:36    阅读次数:245
poj 3321 Apple Trie
/* poj 3321 Apple Trie 这道题的关键是如何将一个树建成一个一维数组利用树状数组来解题! 可以利用dfs()来搞定,我们在对一个节点深搜后,所经过的节点的数目就是该节点的子树的数目 所以我们利用start[i]数组来记录 i 节点在一维数组的起始位置, 而end[i]则...
分类:移动开发   时间:2014-07-07 23:08:32    阅读次数:400
音频类 单例
.h文件#import @interface PLMsoundTool : NSObject- (void)playSongWithName:(NSString *)name;+ (instancetype)shareSoundTool;@end.m文件#import "PLMsoundTool.h...
分类:其他好文   时间:2014-07-07 22:55:53    阅读次数:221
伪随机数算法--线性同余法
1 Static Function rand()2 x = (x * 37 + 27) Mod 10003 rand = x4 End FunctionVB代码
分类:其他好文   时间:2014-07-07 19:46:43    阅读次数:178
LeetCode OJ - Remove Nth Node From End of List
题目: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 rem...
分类:其他好文   时间:2014-07-07 19:01:42    阅读次数:155
ORACLE CASE WHEN 及 SELECT CASE WHEN的使用方法
CASE 语句CASE selector WHEN value1 THEN action1; WHEN value2 THEN action2; WHEN value3 THEN action3; ….. ELSE actionN;END CASE;CASE表达式DECLARE temp VARCH...
分类:数据库   时间:2014-07-07 18:11:01    阅读次数:312
Problem Binary Tree Maximum Path Sum
Problem Description:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below bina...
分类:其他好文   时间:2014-07-07 15:57:05    阅读次数:252
iOS.访问 Web Service.同步GET请求方法
1、字符串转换为URL字符串NSString分类#import @interface NSString (URLEncoding)-(NSString *)URLEncodedString;-(NSString *)URLDecodedString;@end#import "T20140628013...
分类:移动开发   时间:2014-06-30 11:22:58    阅读次数:260
验证list的底层数据结构
《STL源码剖析》中,指出SGI STL的list底层数据结构式循环双向链表,并且在链表尾端留一个空白节点,让end指向它。由于是双向的,那么list的迭代器必须是Bidirectional Iterator类别的。        下面,分别验证vs2010下和code blocks(gcc)下,list的底层实现是否是循环链表。 #include #include using namesp...
分类:其他好文   时间:2014-06-30 00:21:54    阅读次数:202
【转】C/C++中可变参数函数的实现
转自:http://www.cnblogs.com/cylee025/archive/2011/05/23/2054792.html在C语言的stdarg.h头文件中提供了三个函数va_start, va_end,va_arg和一个类型va_list。利用它们,我们可以很容易实现一个可变参数的函数。...
分类:编程语言   时间:2014-06-29 18:33:01    阅读次数:173
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!