Question: Instructions: Write a C++ program that uses a function to shift the rows of a 2D Vector. This C++ program needs to compile successfully on

Instructions: Write a C++ program that uses a function to shift the rows of a 2D Vector. This C++ program needs to compile successfully on Visual Studio 2015 or 2017. Place your name and which version of Visual Studio you used (2015 or 2017) in comments at the top of your program. Instructions: Define a function that will shift a 2D Vector of integers as: Shift_2D_Vector. Shift_2D_Vector must only have the following 2 parameters: 1. A 2 dimensional vector of integers. Call this parameter: table 2. A unsigned integer that will store the number of shifts. Call this parameter: num_of_shifts. The function needs to work with 2D vectors of any size and any number of shifts. Make sure that your function can properly perform shifts that are greater than the size of the vector. Test this function by writing a C++ program that prompts the user to input the number of rows and columns that the vector will have. Additionally, allow the user to input how many times he wants to shift the vector.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!