码迷,mamicode.com
首页 >  
搜索关键字:end    ( 30778个结果
html5 播放多个视频。一个接一个的播放
new个video,指定播放列表的第一个视频路径为src。监听end事件,回调里面把video的src改成列表的下一个,再play。示意代码:var vList = ['视频地址url1', 'url2', '...']; // 初始化播放列表var vLen = vList.length; // ...
分类:Web程序   时间:2015-02-08 11:31:21    阅读次数:176
浅谈php随机不重复数的两种算法
先引入别人的一个秒表计时类(counttime.class.php):1.先看第一个例子(大数中取少数): 1 5 */ 6 7 class Stopwatch { 8 private $start; 9 private $end;10 private $markup_start = array.....
分类:编程语言   时间:2015-02-08 10:16:37    阅读次数:210
NSArray常用方法、排序及乱序
#import "ViewController.h"@interface ViewController ()@end@implementation ViewController- (void)viewDidLoad{ [super viewDidLoad]; // 数组的排序 //...
分类:编程语言   时间:2015-02-08 00:21:34    阅读次数:468
DFS分别用邻接矩阵和邻接表访问
之前写的那份是用邻接矩阵访问的,最近在复习数据结构,决定把邻接表的也写上来 邻接矩阵的看这里  : http://blog.csdn.net/hhooong/article/details/41761621 邻接表 :(写关键部分的算法)  void DFS (Graph &G, int v ,bool visit[]) { cout << G.getValue(v) << end...
分类:其他好文   时间:2015-02-07 17:34:41    阅读次数:149
LeetCode 019 Remove Nth Node From End of List
题目描述:Remove Nth Node From End of ListGiven a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list:.....
分类:其他好文   时间:2015-02-07 17:18:36    阅读次数:128
fs event_socket
mod_event_socketSkip to end of metadataCreated byJohn Boteler, last modified byNiek VlessertonNov 14, 2014Go to start of metadataAboutmod_event_socket...
分类:其他好文   时间:2015-02-07 17:10:30    阅读次数:150
C语言计算日期间隔天数的经典算法解析
在网上看到了一个计算日期间隔的方法,咋一看很高深,仔细看更高神,很巧妙。 先直接代码吧 #include #include int day_diff(int year_start, int month_start, int day_start , int year_end, int month_end, int day_end) { int y2, m2, d2; int y1...
分类:编程语言   时间:2015-02-07 15:56:43    阅读次数:268
SQL Case when 的使用方法
Case具有两种格式。简单Case函数和Case搜索函数。--简单Case函数CASE sexWHEN '1' THEN '男'WHEN '2' THEN '女'ELSE '其他' END--Case搜索函数CASE WHEN sex = '1' THEN '男'WHEN sex = '2' THE...
分类:数据库   时间:2015-02-07 15:50:27    阅读次数:149
hdu 1042 N!(高精度乘法)
Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N,...
分类:其他好文   时间:2015-02-07 11:43:17    阅读次数:128
单例宏
ARC&MRC都可使用的单例宏单例宏使用示例.h——>#import#import "singleDefine.h"@interface JYShared : NSObjectSHARED_INTERFACE(JYShared)@end.m—>#import "JYShared.h"#import@...
分类:其他好文   时间:2015-02-07 11:33:49    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!