This program illustrates how one vector can be assigned to another vector of the same component type, using the assignment operator (=), and also illustrates the use of the assign() member function for assigning values to a vector. Press Enter to continue ... First we demonstrate use of the assignment operator. Press Enter to continue ... For v1 we have ... Size = 5 Capacity = 5 Contents: 1 2 3 4 5 Press Enter to continue ... For v2 we have ... Size = 7 Capacity = 7 Contents: 1 2 3 4 5 6 7 Press Enter to continue ... For v3 we have ... Size = 10 Capacity = 10 Contents: 1 2 3 4 5 6 7 8 9 10 Press Enter to continue ... Now we assign v1 to v2 (v2 = v1). Then for v2 we have ... Size = 5 Capacity = 7 Contents: 1 2 3 4 5 Press Enter to continue ... Now we assign v3 to v2 (v2 = v3). Then for v2 we have ... Size = 10 Capacity = 10 Contents: 1 2 3 4 5 6 7 8 9 10 Press Enter to continue ... Now we demonstrate use of the assign() member function. Press Enter to continue ... For v4 we have ... Size = 4 Capacity = 4 Contents: 2 4 6 8 Press Enter to continue ... Now we perform v4.assign(3, 10). Then for v4 we have ... Size = 3 Capacity = 4 Contents: 10 10 10 Press Enter to continue ... Now we perform v4.assign(6, 12). Then for v4 we have ... Size = 6 Capacity = 6 Contents: 12 12 12 12 12 12 Press Enter to continue ... For v5 we have ... Size = 5 Capacity = 5 Contents: 1 3 5 7 9 Press Enter to continue ... For v6 we have ... Size = 10 Capacity = 10 Contents: 2 4 6 8 10 12 14 16 18 20 Press Enter to continue ... Now we perform v5.assign(v6.begin()+2, v6.begin()+5). Then for v5 we have ... Size = 3 Capacity = 5 Contents: 6 8 10 Press Enter to continue ... Now we perform v5.assign(v6.begin()+1, v6.begin()+8). Then for v5 we have ... Size = 7 Capacity = 7 Contents: 4 6 8 10 12 14 16 Press Enter to continue ...