Practicando estructura de datos con C++

in StemSocial22 hours ago

Hoy estuve platicando nuevo con c++ y quería probar algo que suele utilizar mucho en javascript que normalmente lo llamaba mouse objetos pero es una estructura de datos que permite almacenar información a través de una clave y su valor.

Today I was talking to C++ again and wanted to try something that I usually use a lot in JavaScript, which I normally called mouse objects, but it's a data structure that allows you to store information through a key and its value.
![person.png]() Programar con c++ se ve divertido porque todavía no he realizado cosas muy complejas por momentos solo es practicar algoritmos y algunos bucles probar ideas propias familiarizarme con el lenguaje y tratar de no olvidarme el punto y coma al final de cada expresión.
Programming with C++ seems fun because I haven't done very complex things yet; at times it's just practicing algorithms and some loops, trying out my own ideas, familiarizing myself with the language, and trying not to forget the semicolon at the end of each expression.
![person2.png]() Este simple algoritmo que realice permite que a través de la terminal se ingrese el nombre y la edad y se vayan agregando dentro de un vector cada uno hasta la cantidad que se necesita porque luego se imprime por consola el nombre y el valor de cada ítem dentro del vector lo podré haber hecho de manera indefinida y más adelante imprimirlo pero no quería rebuscarme mucho por el momento quería familiarizarme más con practicarlo para asimilar cómo trabajar con el lenguaje de programación.
This simple algorithm I created allows you to enter a name and age through the terminal, and then add each item to a vector until the required amount is reached. The name and value of each item in the vector are then printed to the console. I could have done this indefinitely and printed it later, but I didn't want to overcomplicate things for now. I wanted to familiarize myself with it by practicing and learning how to work with the programming language.
![person3.png]()