Hello, I have been working on this issue for a long time, and I need your expertise.

I have 2 arrays, each of them are hard-coded with integer values.

I also have one 2-Dimensional vector and I want to put 1 array into the first column of the vector and the other array into the 2nd column of the vector. The reason is that I want to do math on the 2nd column of the vector only.

I am able to accomplish this with 3 arrays. Two of them are 1-Dimensional and the third array is 2-Dimensional.

I know how to pass ONE Array into ONE vector:

however, when I declare a 2-Dimensional vector:Code:vector<int> myVector(typeArray, typeArray + 4);

I am not seeing how to add TWO arrays or how to OUTPUT it to the screen.Code:vector< vector <int> > myVector(3, vector<int> (2,0))

Here is my code using DevCPP:

I dont' get any errors, however, I don't know how to output it to the screen to see what it looks like. Please advise, thanks!Code:#include <iostream> #include <vector> #include <Windows.h> #include <algorithm> using namespace std; int main() { int typeArray[3] = {55,66,77}; int valArray[3] = {1,2,3}; // for vector: 3 = LENGTH or NUMBER of ROWS; 2 = WIDTH or NUMBER of COLUMNS; // 0 = VALUE all cells are initialized to vector< vector <int> > myVector(3, vector<int> (2,0)); for (int i = 0; i < sizeof(typeArray); i++) { for (int j = 0; j < sizeof(valArray); j++) { myVector[i][j]; } // This "cout" statement doesn't work //cout << "Vector is now: " << myVector[i][j] << endl; } system("Pause"); return 0; }