Hello, you knows why is happenig this. I mean, when I run the code and introduce a mistake the default in the switch supposed to capture the mistakeand restart the loop(while). Instead cmd shows somthing like: (I mean runs without any control)
Bienvenido
Seleccione una opci¾n
1. Capturar Equipos
2. Registrar Marcadores
3. Ver EstadÝsticas
4. Reglas de la Quiniela
5. Salir
cgfyjfgyh
No selecciono un valor vßlido
Seleccione una opci¾n
1. Capturar Equipos
2. Registrar Marcadores
3. Ver EstadÝsticas
4. Reglas de la Quiniela
5. Salir
No selecciono un valor vßlido
Seleccione una opci¾n
1. Capturar Equipos
2. Registrar Marcadores
3. Ver EstadÝsticas
4. Reglas de la Quiniela
5. Salir
No selecciono un valor vßlido
Seleccione una opci¾n
1. Capturar Equipos
2. Registrar Marcadores
3. Ver EstadÝsticas
4. Reglas de la Quiniela
you compiler settings are unable to handle the non-english characters you are using for some of the words.
see how the issue is on the accented n in opción or the i in Estadísticas ?
that is your issue. I am not sure what you need to change for it, but your CODE is fine, this is a setting.
it could ALSO be that the TEXT in the CODE is wrong, coming from something like MSWORD, and you need to retype it using a simple editor. Some special letters are replaced with 'better looking' versions by the text editor, but which is not compatible with CODE (without using unicode or the like, that is).
what do you get if you do this:
cout << (char)(162) << endl;