@@ -10,12 +10,12 @@ La librería incorpora dos métodos estáticos para el calculo de QuickSort asce
10
10
Para la ordenación en sentido ascendente usaríamos el método SortAscending.
11
11
12
12
``` c++
13
- QuickSort< int > ::SortAscending(items, initItem, numItems);
13
+ QuickSort::SortAscending (items, initItem, numItems);
14
14
```
15
15
16
16
Mientras que para la ordenación en sentido descendente usaríamos el método SortDescending.
17
17
```c++
18
- QuickSort< int > ::SortDescending(items, initItem, numItems);
18
+ QuickSort::SortDescending(items, initItem, numItems);
19
19
```
20
20
21
21
## Ejemplos
@@ -42,7 +42,7 @@ void setup()
42
42
43
43
Serial.println("Ordenando 100 integers");
44
44
unsigned long timeCount = micros();
45
- QuickSort<int> ::SortAscending(values100, 0, values100Length - 1);
45
+ QuickSort::SortAscending (values100, 0, values100Length - 1);
46
46
timeCount = micros() - timeCount;
47
47
printArray(values100, values100Length);
48
48
Serial.println();
@@ -78,7 +78,7 @@ void setup()
78
78
79
79
Serial.println("Ordenando 100 integers");
80
80
unsigned long timeCount = micros();
81
- QuickSort<float> ::SortAscending(values100, 0, values100Length - 1);
81
+ QuickSort::SortAscending(values100, 0, values100Length - 1);
82
82
timeCount = micros() - timeCount;
83
83
printArray(values100, values100Length);
84
84
Serial.println();
0 commit comments