+ 1

What is use of vector file in C++

vector file

11th Oct 2018, 6:33 AM
Vector Supercell
Vector Supercell - avatar
2 Réponses
+ 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...
11th Oct 2018, 6:56 AM
Mensch
Mensch - avatar
+ 1
thank u
12th Oct 2018, 3:46 PM
Vector Supercell
Vector Supercell - avatar