Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

PC Magazine Guide To Client Server Databases

Authors: Joe Salemi

1st Edition

156276070X, 978-1562760700

More Books

Students also viewed these Databases questions

Question

What does it mean to say that the sample variance is unbiased?

Answered: 1 week ago