#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
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