Hello everybody and welcome to another video. In this video, we're going to look at vectors. A vector is very similar to an array in C++. The big difference between a vector and an array is that arrays are fixed in size and vectors are not. Vectors can be dynamically sized which means you don't have to determine how big they are. They work identically to arrays and they have some other features associated with them as well. For the most part, they're very similar to the array. So in this particular example, we're creating a vector and we're using a template for int. And so in our vector, we're also including the vector. So up at the top where we do our IO stream for CNNC out, we need to include a vector. And when we do that, we will get the vector element that we can use. And so to create a vector that contains integers, you go vectors and then you put the template in for int. And we're going to call our instance of our vector V. And now we're going to add two integers to the vector. So V dot push back, which is you can push front or push back, which means you're going to add it to the front or to the back of the list and think of the vector sort of like a list or an array. So we're going to put this at the end of the list. So we push it to the back, we're going to put the number 25, and then we're going to push it to the back, we're going to put the number 13. And then we're going to print the values. So you go V dot at, and then the index value for number one is zero, just like arrays, it starts with zero. The second element is number one. So if we run and build it, we have 25, and we have 13, I think it printed to the screen 25, and then we have 13, which is the first element and the second element that we pushed to the back of the vector. And so this is an easy way of creating an array that is dynamically sized, which means it can be of any length. You can add to the front, or you can add to the back of it, which comes in handy when you implement data structures. And it allows you to get at the elements by their index values. There's also some other nifty methods that you can run on vectors. And you'll learn more about that the more that you use them. But this is an introduction to the concept of the vector. And the vector can hold any data type that you wish. And think of it like a list or like an array that can grow in size. And it can be of any unlimited length. Thanks for watching.