1、 递归算法:quicksort.cpp#include using namespace
std;void Swap(int a[],int i,int j){ int temp=a[i]; a[i] = a[j]; a[j] = temp;}int
Partition(int a[],int l...
分类:
其他好文 时间:
2014-05-27 02:29:55
阅读次数:
274
源码://HeapSort.cpp#include using namespace
std;//about heap://the last leaf node is a[n-1]//the last non-leaf node is
a[n/2-1];// a[i]// ...
分类:
其他好文 时间:
2014-05-27 02:21:23
阅读次数:
240
算法源码://BubbleSort.cpp#include using namespace
std;void BubbleSort(int a[], int n){ for(int i=n-1;i>0;i--) { for(int
j=0;ja[j+1]) { int tmp = a[j...
分类:
其他好文 时间:
2014-05-27 02:07:07
阅读次数:
223
#include
"HelloWorldScene.h"USING_NS_CC;CCScene* HelloWorld::scene(){ CCScene *scene =
CCScene::create(); HelloWorld *layer = HelloWorld::create...
分类:
其他好文 时间:
2014-05-27 02:06:26
阅读次数:
221
题意:对于n,m,k,定义n的操作,+m,-m,*m,%m,(You should know that
if a = b * q + r (q > 0 and 0 3 #include 4 #include 5 #include 6 #include 7
using namespace s...
分类:
其他好文 时间:
2014-05-27 01:39:48
阅读次数:
285
using System;using System.Collections;using
System.Text;using System.DirectoryServices.AccountManagement;using
System.Data;using System.Configuration;...
分类:
其他好文 时间:
2014-05-27 01:31:12
阅读次数:
426
例一:在网站要目录下添加ValidateCode.aspx,路径自己定。ValidateCode.aspx:ValidateCode.aspx.cs:using
System;using System.Collections.Generic;using System.Web;using System...
分类:
其他好文 时间:
2014-05-27 01:03:47
阅读次数:
430
最近看数据结构时看到直接插入排序法,其基本思想是:将一个记录插入到已经排好序的有序表中,从而得到一个新的,记录数增1的有序表下面是代码实现与测试 1
#include 2 using namespace std; 3 void InsertSort(int *q,int L) 4 { 5 ...
分类:
其他好文 时间:
2014-05-24 07:07:19
阅读次数:
285
http://cvrc.ece.utexas.edu/Publications/Xia_HAU3D12.pdfView Invariant Human
Action Recognition Using Histograms of 3D JointsThe HOJ3Dcomputed from the...
分类:
其他好文 时间:
2014-05-24 06:52:59
阅读次数:
458
一、前后台代码:Global.cs:using
System.Web.Routing;。。。void Application_Start(object sender, EventArgs e) { //
在应用程序启动时运行的代码 //RegisterRoutes(); RegisterRoutes...
分类:
Web程序 时间:
2014-05-24 04:47:43
阅读次数:
295