Fichas biográficas de próceres [ESP-ENG] | C++

avatar
(Edited)

cover.jpg

¡Saludos! Acá estoy en otra madrugada de inspiración, esta vez presentando una creación un poco diferente pero usando herramientas antes traídas. Antes de entrar al código, es importante recordar que no incluí acentos y evité las "ñ" porque al ser un lenguaje de programación en inglés, hay caracteres que no están presentes, a menos que se usen ciertas librerías.

Greetings! Here I am in another early morning of inspiration, this time presenting a slightly different creation but using tools brought before. Before going into the code, it is important to remember that I did not include accents and I avoided the "ñ" because being an English programming language, there are characters that are not present, unless you use certain libraries.

Programación c++.png

Bien, comenzamos con las librerías ya conocidas, iostream para la entrada y salida de datos, conio.h para el uso del getch y windows.h para la limpieza de pantalla. La primera función que encontramos es gotoxy, la conocida anteriormente que usamos para graficar, en esta ocasión no solo nos servirá para eso, sino también para posicionar el cursor antes de mandar una línea de texto.

Para hacer el marco reciclé el código del "0" antes presentado (en la serie de graficar números en consola). Sólo que esta vez hice un par de modificaciones, dando lugar a dos versiones de "marcos", una cuyo ancho es el doble al "n" ingresado y otra donde es el doble con unos cuantos espacios más. Usé la version "marco2" porque me ayudaba un poco más con el espacio. Posteriormente hice un "separador" para incluir puntos que señalaran el número correspondiente al procer cuya información el usuario quiera consultar, sumado claro al propio número mencionado.

Para la función "lista_proceres", incluí el nombre de 7 próceres, modifique la posición del cursor para manipular un poco la posición en pantalla del texto, añadí el marco y los separadores para hacer una "portada de inicio" o al menos una parte importante de ella.

Well, we begin with the already known libraries, iostream for the input and output of data, conio.h for the use of the getch and windows.h for the cleaning of the screen. The first function that we found is gotoxy, the previously known function that we used for graphing, this time it will not only serve us for that, but also to position the cursor before sending a line of text.

To make the frame I recycled the code of the "0" previously presented (in the series of graphing numbers in console). Only this time I made a couple of modifications, resulting in two versions of "frames", one where the width is twice the width of the "n" entered and another where it is twice the width with a few more spaces. I used the "marco2" version because it helped me a little more with the spacing. Later I made a "separator" to include dots to indicate the number corresponding to the procer whose information the user wants to consult, in addition to the number mentioned.

For the function "lista_proceres", I included the name of 7 proceres, modified the cursor position to manipulate a little the position on screen of the text, added the frame and the separators to make a "home page" or at least an important part of it.

1.JPG

2.JPG

3.JPG

4.JPG

5.JPG

6.JPG

Programación c++.png

Para la función "filter" añadí un switch-case, para completar el menú de selección. Para cada caso incluí la información correspondiente, la llamada al posicionamiento del cursor y el marco. Sin olvidar claro, la limpieza de pantalla, de modo que el texto no se desordene y sobresature la pantalla.

For the "filter" function I added a switch-case, to complete the selection menu. For each case I included the corresponding information, the cursor positioning call and the frame. Not forgetting, of course, the screen cleaning, so that the text does not clutter and oversaturate the screen.

7.JPG

8.JPG

9.JPG

10.JPG

Programación c++.png

11.JPG

12.JPG

13.JPG

14.JPG

image.png

¡Y bueno... Eso es todo por hoy! En este caso la idea era seguir combinando lo tratado antes, pero también ir ampliando la visión sobre las posibilidades disponibles dentro de incluso un lenguaje de programación que ya tiene una cantidad de años a considerar. Aún así también hay que admitir las debilidades a tratar y buscar innovación para no quedar obsoletos.

Como dijo aquel chico de "programación ATS": "Si puedes imaginarlo, puedes programarlo".

Si estás interesado en otro tutorial de programación, acá están los links a los que he hecho hasta ahora.

And well... That's all for today! In this case the idea was to continue combining what was discussed before, but also to expand the vision on the possibilities available within even a programming language that already has a number of years to consider. Even so we must also admit the weaknesses to be addressed and seek innovation to avoid becoming obsolete.

As that "ATS programming" guy said: "If you can imagine it, you can program it".

If you are interested in another programming tutorial here are the links to the ones I have done until now:


Nombre de la publicación / Name of the postLINK
Calculador de datos para un triángulo rectángulo en C++1
Concecionario de autos, ejercicio en JAVA2
Calculador de edad básico C++3
Inversor de números de tres cifras4
¿Cuántos números de 3 cifras existen cuya suma sea 10? - ¡Respondiendo a otro usuario! C++6
Calculadora simple, cifra menos significativa y portada simple C++7
¡Vistazo a BeatUDO! [ESP-ENG] JAVA9
Comprobar si un número de dos cifras es primo C++10
Conversor de pulgadas a 7 unidades distintas C++11
Comprobar si un número es capicúa (Máx 5 cifras) C++12
Comprobador de caracteres C++13
Calculadora de índice de masa corporal C++14
Calculadora de factoriales C++15
Conversor (Grados Celsius - Fahrenheit - Kelvin) C++16
Calculadora de longitud, diametro y área de una circunferencia C++17
Graficando números en consola (0-3) C++18
Graficando números en consola II (4-6) C++19
Graficando números en consola III (7-9) C++20
Calculadora de ecuaciones cuadráticas C++21
Dados digitales C++22

Programación c++.png

Puedes seguirme por acá si lo deseas:
You can follow me here if you want:

Diseño sin título.gif

Cuenta secundaria
(Dibujos, edición y juegos) | Secondary account (Drawings, editing and games)



0
0
0.000
2 comments