[Verifying my OpenPGP key: openpgp4fpr:47A2AF6E53032E2989EC25362935E1F768CBE4A0]
[Verifying my OpenPGP key: openpgp4fpr:1FF7D333D0A9D47A92640DF3E8AFAD64EDA59E13]
[Verifying my OpenPGP key: openpgp4fpr:47A2AF6E53032E2989EC25362935E1F768CBE4A0]
[Verifying my OpenPGP key: openpgp4fpr:1FF7D333D0A9D47A92640DF3E8AFAD64EDA59E13]
| ;; mutex.scm | |
| ;; Copyright (C) 2020 Iván Alejandro Ávalos Díaz | |
| ;; | |
| ;; This program is free software: you can redistribute it and/or modify | |
| ;; it under the terms of the GNU General Public License as published by | |
| ;; the Free Software Foundation, either version 3 of the License, or | |
| ;; (at your option) any later version. | |
| ;; | |
| ;; This program is distributed in the hope that it will be useful, | |
| ;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| BEGIN MESSAGE. | |
| 5i3vueh3MGzTSPV pPXH6OsABRD8VaS 6LY1MduEJeifN5u 2YMcvSse1jH6FBA | |
| XBbll52r7tcjqps qeBQ37flASaTCKq 6Xr2MZHgg6XXyba fc4fOmWi7WInTTu | |
| h3gWj7d5AOiJo3M RZltob3N1pFLwgF sJFmJT3O8BpGDQX MPjRROWPhzkf0AZ | |
| NQhtw4PsXdmhFga QAUKsN46NIfw7P0 BEAHZ0aLMzWSiL. | |
| END MESSAGE. |
| public static void Ordenar(ArrayList<Corredor> list) | |
| { | |
| Corredor temp; | |
| if (list.size()>1) // check if the number of orders is larger than 1 | |
| { | |
| for (int x=0; x<list.size(); x++) // bubble sort outer loop | |
| { | |
| for (int i=0; i < list.size() - x - i; i++) { | |
| if (list.get(i).tiempoMin - list.get(i+1).tiempoMin > 0) | |
| { |
| // Example program | |
| #include <iostream> | |
| #include <string> | |
| #include <vector> | |
| #include <stdlib.h> | |
| using namespace std; | |
| int main() | |
| { |
I hereby claim:
To claim this, I am signing this object: