//基数排序,对每一位的排序采用的插入排序(可改为快速排序或计数排序效果更好) #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<stdio.h> #include<stdlib.h> #include<ctype.h> #define STACK_INIT_SIZE 20 #define STACKINCREMENT 10 typedef struct{ char *top; char *bas
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号