首页 软件开发 代码片段 ( Page 603 )

代码片段 8064

#Java
Java实现字符串匹配算法KMP

kmp算法的核心思想:先对搜索字串生成偏移对照表,匹配时从左向右依次比较(bm从右向左,号称比kmp更快),相等则文档和搜索字串的下标+1迭代, 否则查表,定位最优的偏移位置(文档…

2015-01-09 319

#C/C++
OpenCV图像匹配算法之orb

//orb.cpp #include "stdafx.h" #include <cv.hpp> #include <highgui.h>…

2015-01-09 518

#Java
Android 拨打电话的代码

try { Intent intent = new Intent(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:+…

2015-01-09 340

#C/C++
OpenCV图像匹配算法之brisk

//brisk.cpp #include "stdafx.h" #include <cv.hpp> #include <highgui.h&g…

2015-01-09 354

#C/C++
VC++编程中获取系统时间的代码

总结了在程序中如何获得系统时间的方法  void CGetSystenTimeDlg::OnBnClickedGettimeButton() { // TODO: 在此添…

2015-01-09 808

#Objective-C
mac下xode插件的安装路径

// xode插件安装路径:/Users/hehongbo/Library/Application Support/Developer/Shared/Xcode/Plug-ins

2015-01-09 743

#C/C++
快速排序的算法C++实现

#include <stdio.h> #include <stdlib.h> #define SORT_ARRAY_SIZE 10000 #define P…

2015-01-09 336

#Objective-C
Notification的简单使用

Notification不同版本的使用 //RemoteViews是Notification的内部布局 RemoteViews rv = new RemoteViews(getPa…

2015-01-09 364

#HTML
一个google mail中的圆角table

<html> <head> <style> .hX { cursor: pointer; display: inline-table; marg…

2015-01-09 959

#PHP
php验证码类

<? /** * 验证码类 * @author firerat * @email lukai_rat@163.com * @time Feb 16 2011 15:28 * …

php
2015-01-08 352

#Python
取一列数中连续最长的奇数个数

n=0 b=[] a=[2,3,3,0,0,2,4,7,5,7] for i in a: if i%2!=0: n+=1 b.append(n) else: n=0 print m…

2015-01-08 772

#Python
Python实现 深度优先算法生成迷宫

import random #warning: x and y confusing sx = 10 sy = 10 dfs = [[0 for col in range(sx)] …

2015-01-08 927