Code:
#include <list> #include<iostream> #include <algorithm> using namespace std; void sort(double* begin,double* end) { for(int j=0;j<(end-begin)+1;j++) { for(int i=0;i<(end-begin)+1;i++) { if(*(begin+i)>*(end-i)) {
#include <list> #include<iostream> #include <algorithm> using namespace std; void sort(double* begin,double* end) { for(int j=0;j<(end-begin)+1;j++) { for(int i=0;i<(end-begin)+1;i++) { if(*(begin+i)>*(end-i)) {
Leave a comment: