Por: colero
I think this for(i=0; i<n-1; i++) for(j=i+1; ja[j]) { temp=a[i]; a[i]=a[j]; a[j]=temp; } is equivalent to do sort(a.begin(), a.end()); of course, including and calling using namespace std;
View ArticlePor: Gerald
@colero: Gracias por tus sugerencias, pero este código es a nivel básico poco a poco se ira aumentando el nivel de dificultad.
View Article
More Pages to Explore .....