Question: Write a C++ program that has an empty vector container . Use one of the vector methods to add 5 elements to the vector container

Write a C++ program that has an empty vector container. Use one of the vector methods to add 5 elements to the vector container you created. Print the values you have inserted into to the container in the order they were inserted. Also print them in reverse order.

Step by Step Solution

3.37 Rating (147 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Certainly Heres a simple C program that demonstrates what youve described ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!