...

/

STL Based Vector Collection

STL Based Vector Collection

Understand the usage of vector collection for storing user-defined Point class objects.

We'll cover the following...

Problem

Write a program to maintain a collection of objects of a user-defined Point class.

Sample run

Here’s what you should see when you run the program.

Vector vp1:
x, y = 1, 1
x, y = 2, 2
x, y = 3, 3
x, y = 4, 4
x, y = 5, 5
Front: x, y = 1, 1
Back : x, y = 5, 5
Reverse Vector vp1:
x, y =
...