Añadidos comentarios en main
This commit is contained in:
parent
3d89dfef5a
commit
0bd65da541
@ -4,6 +4,7 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
// Constantes para el manejo de los diferentes menús
|
||||
const int8_t MENU_PRINCIPAL = 0;
|
||||
const int8_t MENU_INICIAR_STRESS = 1;
|
||||
const int8_t MENU_CONFIGURACION = 2;
|
||||
@ -183,7 +184,9 @@ void showMenu(vector<string> *menu_elems, const int8_t *num_menu) {
|
||||
}
|
||||
|
||||
// Por algún motivo los acentos y tildes cuentan como un caracter
|
||||
// aparte por lo que hay que añadir un espacio extra.
|
||||
// aparte, por lo que hay que añadir un espacio extra en esos casos.
|
||||
// De momento la mejor solución es leer cada dos caracteres y ver si
|
||||
// cuadra con alguna de las siguientes letras
|
||||
|
||||
for (int j = 0; j < menu_elems->at(i).length(); j++) {
|
||||
if (menu_elems->at(i).substr(j, 2).compare("á") == 0 |
|
||||
|
Loading…
x
Reference in New Issue
Block a user