Here you can find more information about arrays: https://www.programarya.com/Cursos/C++/Estructuras-de-Datos/Arreglos-o-Vectores
You can find information about vectors here: http://www.cplusplus.com/reference/vector/vector/?kw=vector
You can find information about strings here: http://www.cplusplus.com/reference/string/string/?kw=string
(Tuve problemas para subir el video por que estaba muy muy lento el internet, por eso apenas lo postee, espero y pueda comprender ken)
]]>Description: Creation and use of vectors and matrixes in C++.
The very last one. We are going into the matrix of codes (or the code of matrixes, rather). It’s a bit odd that these masteries find themselves separated by a gap between two other masteries, but that’s just nitpicking. Let’s go ahead and finish this trip.
Video link.
]]>Here’s my video
]]>
Enjoy.
]]>
Here is the link for my video:
]]>
First you need to call the vector library:
As usual this will allow us to form vectors and use their properties.
In this example we will make use of vectors to create a list of integers and returns the sume of the squares of the elements in the list.
We create our function specifying that we’ll be using a vector.
It’s important to define the name of the vector in this case “x” and the category of it, in this case “int” (Integers).
Then, on our main function, we will add all the specifications for the vector in this case we will specify it’s length and the values assigned to every component of the list.
And that’s and easy example of how to use vectors in C++
]]>Creation and use of ranges in Python
Like a string, a list is a sequence of values. In a string, the values are characters; in a list, they can be any type. The values in a list are called elements or sometimes items. There are several ways to create a new list; the simplest is to enclose the elements in square brackets ([something]):
numbers = [10, 20, 30, 40]
stuffs = [‘banana’, ‘candle’, ‘brownie’, ‘string’]
For creating a list you need to establish the name of the list and then assign the value of the list.
Next, for print a value of the list you need to type the command print() and between the parenthesis you type the name of the list followed by the number of the element desired. All the elements on a list are numbered from 0.
If you want to know the number of the values inside the list you need to type the command len().
]]>