Añadidos comentarios en main
This commit is contained in:
		| @@ -4,6 +4,7 @@ | |||||||
|  |  | ||||||
| using namespace std; | using namespace std; | ||||||
|  |  | ||||||
|  | // Constantes para el manejo de los diferentes menús | ||||||
| const int8_t MENU_PRINCIPAL = 0; | const int8_t MENU_PRINCIPAL = 0; | ||||||
| const int8_t MENU_INICIAR_STRESS = 1; | const int8_t MENU_INICIAR_STRESS = 1; | ||||||
| const int8_t MENU_CONFIGURACION = 2; | 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 |         // 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++) { |         for (int j = 0; j < menu_elems->at(i).length(); j++) { | ||||||
|           if (menu_elems->at(i).substr(j, 2).compare("á") == 0 | |           if (menu_elems->at(i).substr(j, 2).compare("á") == 0 | | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user