码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
快速排序
#include "stdafx.h"#include using namespace std;int RandomInRange(int start,int end);void Swap(int *p,int *q);int patition(int data[],int length,int s...
分类:编程语言   时间:2015-06-18 15:19:51    阅读次数:117
冒泡排序
#include "stdafx.h"#include using namespace std;void BubbleSort(int data[],int length){ int i,j; bool exchange=false; for(int i=0;i<length-1;i++) { e....
分类:编程语言   时间:2015-06-18 15:18:23    阅读次数:110
判断闰平年
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 判断闰平年{ class Program { ...
分类:其他好文   时间:2015-06-18 15:13:21    阅读次数:102
24小时制转12小时制
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 24小制转12小时制{ class Program ...
分类:其他好文   时间:2015-06-18 15:05:06    阅读次数:99
老狼老狼几点了
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 老狼老狼_几点了{ class Program ...
分类:其他好文   时间:2015-06-18 15:03:27    阅读次数:125
判断体重偏轻重
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace 判断体重偏轻中{ class Program ...
分类:其他好文   时间:2015-06-18 14:49:34    阅读次数:113
排序--折半插入
#include using namespace std; #define SIZE 21 typedef int Sqlist[SIZE]; void BInsertSort(Sqlist &L,int n) { int i,j; int low; int high; int mid; for(i=2;i<n;++i) { L[0] = L[i]; ...
分类:编程语言   时间:2015-06-18 13:36:45    阅读次数:136
排序---直接插入
#include using namespace std; #define SIZE 21 typedef int Sqlist[SIZE]; void InsretSort(Sqlist &L,int n) { for(int i=2;i<n;++i) { L[0] = L[i]; for(int j=i;L[0] < L[j-1];--j) {...
分类:编程语言   时间:2015-06-18 13:36:17    阅读次数:138
排序--两路排序
#include using namespace std; #define SIZE 21 typedef int Sqlist[SIZE]; void TwayTnsertSort(Sqlist &T,Sqlist &S,int n) { int i,j,k; int first=0; int last = 0; S[first]= S[last] = T[0]; f...
分类:编程语言   时间:2015-06-18 13:35:02    阅读次数:141
排序--希尔排序
#include using namespace std; #define SIZE 21 typedef int Sqlist[SIZE]; void ShellInsert(Sqlist &L,int dk,int n) { int i,j; for(i=dk;i<n;++i) { if(L[i]<L[i-dk]) { L[0] = L[i]; ...
分类:编程语言   时间:2015-06-18 13:34:41    阅读次数:135
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!