Welcome to this course on C++ Tutorial for Beginners. In this video we will see How to use C++ Vectors.

Why Should You Use STL Vectors? Vectors, rather than C++ Arrays, handle a lot of (often tricky) memory management for you.
Internally, use new[] and delete[].
Don’t resize if you don’t want to waste memory.
It is simpler to pass to functions.
For example, they can tell you their size.
There is no need to pass a separate size variable.
It is not necessary to use a pointer by reference to resize.
For example, push back allocates more memory.

C++ is general purpose, compiled, object-oriented programming language and its concepts served as the basis for several other languages such as Java, Python, Ruby, Perl etc.

The goal of this course is to provide you with a working knowledge of C++. We’ll start with the basics, including syntax, operators, loops, and functions. This Course will explain you how to use data structures and create your own Functions. This Course will show you the details of the powerful object and template systems so you can create useful classes and objects.

Subscribe: https://www.youtube.com/channel/UCs6nmQViDpUw0nuIx9c_WvA

#c++ #programming

Vector in C++ STL with Examples
2.05 GEEK