+ 1
What is use of vector file in C++
vector file
2 Respuestas
+ 2
Vector is used for arrays,it handles memory allocation of arrays so u dont have to worry about unwanted errors plus it enables a person to add elements to the array at will..super efficiencent..
Example:
-vector<int>arr={1,2,3};
arr.push_back={1};
Explanation:
<int> specifies the type of the array followed by its name then its values in {}.
push_back is used to add a new element to the array..
Check out google for more on vector...
+ 1
thank u