In geometry, a vector can describe a movement from one point to another.The vector [3, 2] says go 3 right and 2 up.Vector AdditionThe sum of two vectors (a+b) is found by moving the vector b until the tail meets
The difference between an array and a vector, is that the size of an array cannot be modified (you cannot add or remove elements from an array). A vector however, can grow or shrink in size as needed. To use a vector, you have to include the<vector>header file: ...
× Sign in Submit Answer »