//基数排序,对每一位的排序采用的插入排序(可改为快速排序或计数排序效果更好) #include<iostream> #include<math.h> using namespace std; void InsertSort( int* array_A, int* array_B, int&n
#include<iostream> using namespace std; void InsertSort( int* array, int n ) { int j, temp; for
#include<iostream> using namespace std; void exch( int* x, int* y ) { int temp = *x; *x&nbs
#include<iostream> using namespace std; void SetArray_C( int* a, int* c, int n, int k) { for( int i 
#include<iostream> using namespace std; void MergeArray( int* a, int lhs, int mid, int rhs , int* temp) {  
#include<iostream> using namespace std; void swap( int* x, int* y) { int temp = *x; *x =&n
//回溯法解决数字拆解的问题 #include<iostream> using namespace std; const int N = 6; void OutPut( int* a, int N ) { for(&n
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号