Skip to main content

I'm from Durango, México. The most important thing in the world for me is music, is my passion. I play piano and guitar, also I'm a compositor (lyrics and songs), the artist that I admire to play piano is Yiruma and my biggest achieve in the world will be meet Leonel García, because I admire all of his work as a musician.
I'm studying Mechatronic engineer, as every mechatronics in my gereration, because of Iron Man movies.
My hero in real life is my girlfriend, that sounds kind of weird but is true, I admire her so much, she's smart, is patient, dedicated, she's emotionaly strong and always has a smile in her face, no matter what. And also I've another hero but, it's in Ci-Fi, Iron Man.
My favorite author is: John Katzenbach, because I like the "thriller" books. He involves you a lot into history, and he doesn't have compassion in some books

Gonzalo Mata

Uso de "switch" como condicional - C++

1 min read


En este caso hice un video para explicar como podemos usar la función "switch" como un condicional cuando tenemos bastantes opciones por tener.

La estructura contiene como parámetro el valor condicionante con el que vamos a trabajar y dentro de los casos van las instrucciones que queremos que realice en caso de que la condición se de.

Dejaré un video donde trabajo con un ejemplo y una breve explicación para poder entender como usar un switch para condiciones múltiples.