Quantcast
Channel: Comentarios en: Ordenar Selección en C++
Browsing all 2 articles
Browse latest View live

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 Article



Por: 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
Browsing all 2 articles
Browse latest View live




Latest Images