// CS2310 Exercise 6 // // Name ________________________ SSN ________________________ // // Chapter 12. p700 - 11 // Write a C++ function Copy that takes a two- // dimensional int array data, defined to be // NUM_ROWS by NUM_COLS, and copies the values // into a second array data2, defined the same // way. data and data2 are of type TwoDimType. // The constants NUM_ROWS and NUM_COLS may be // accessed globally. #include #include using namespace std; const int NUM_ROWS = 5; const int NUM_COLS = 10; typedef int TwoDimType[NUM_ROWS][NUM_COLS]; void Copy(const TwoDimType data, TwoDimType data2) { // Write the code here. } int main() { TwoDimType original, copy; int i, j; // Assign values to original array for (i=0; i