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 arrays and strings in C++.
Wait, I didn’t know strings were arrays! Just kidding, we have to know all about arrays and strings if we want to make more complicated code, and it’s always useful to know that you can do one thing in more than one way.
That said, I leave you with the video explanation.
]]>Here’s my video
]]>
Here are masteries #24 and #26
One is about arrays and the other one is about matrixes. Those topics were the hardest for me.
]]>An array is very cool way to store information and a cimple way.
An array is a series of elements of the same type placed in contiguous memory locations that can be individually referenced by adding an index to a unique identifier.
That means that, for example, five values of type int
can be declared as an array without having to declare 5 different variables (each with its own identifier). Instead, using an array, the five int
values are stored in contiguous memory locations, and all five can be accessed using the same identifier, with the proper index.
In simple words, an array is information stored in such a way that you can access each part of your information using a name and an index number.
]]>
]]>
Different from vectors and strings, we don’t need to call a library, we only need to write our function “type array [n]” where n is the length of the array or the number of values that the array will be covering.
This will create an array list, a series of elements with the same data type.
In this case, the user is asked to insert the number of values (10 values) to calculate the Average of them and the standard deviation. This is accomplished by an array and with the help of a for loop until the ten spaces of the array are covered.
as you can see the for loop has a condition and until this conditions are completely covered, the loop will keep repeating over and over again.
]]>