Ordenando items dentro de un vector en C++

Hace unos días tuve un examen en la universidad para lograr aprobar o mejorar la nota que había tenido en el primer parcial los ejercicios resultaban sencillos con mi experiencia en la construcción cuántos años programando sabía que lo que tenía que hacer pero me di cuenta que me equivoqué.

A few days ago I had an exam at university to pass or improve the grade I had on the first partial. The exercises seemed simple with my experience in construction and how many years I've been programming; I knew what I had to do, but I realized I was wrong.
Dado que me tuve que quedar contra la pared para darme cuenta que me había faltado un paso extra en ambos ejercicios decidí intentarlo desde cero y manualmente con otro lenguaje de programación que es c++
Since I had to back myself up against the wall to realize that I had missed an extra step in both exercises, I decided to try it from scratch and manually with another programming language, which is C++
El ejercicio sencillo simplemente consiste en ordenar de menor a mayor los números dentro de una matriz y me di cuenta que tenía que utilizar dos bucles For en cuanto a mi examen simplemente utilicé un solo bucle y esa fue la razón por la cual no aprobé parece un chiste pero eso pasó.
The simple exercise just consists of ordering the numbers in a matrix from smallest to largest, and I realized I had to use two For loops. As for my exam, I only used one loop, and that was the reason I didn't pass. It sounds like a joke, but that's what happened.


0
0
0.000
1 comments
avatar

Thanks for your contribution to the STEMsocial community. Feel free to join us on discord to get to know the rest of us!

Please consider delegating to the @stemsocial account (85% of the curation rewards are returned).

Consider setting @stemsocial as a beneficiary of this post's rewards if you would like to support the community and contribute to its mission of promoting science and education on Hive. 
 

0
0
0.000