#include
using namespace std;
int main(){
void bsort(int*, int);
const int N = 10;
int arr[N] = { 37, 84, 62, 91, 11, 65, 57, 28, 19, 49 };
bsort(arr, N);
for(int j=0; j cout << arr[j] << " ";
cout << endl;
return 0;
}
void bsort(int* ptr, int n){
void order(int*, int*);
int j, k;
for(j=0; j for(k=j+1; k order(ptr+j, ptr+k);
}
void order(int* numb1, int* numb2){
if(*numb1 > *numb2){
int temp = *numb1;
*numb1 = *numb2;
*numb2 = temp;
}
}