Hi There
I'm initializing my 2d array with
individual values, but I can't seem to output them.
// 2 dimensional arrays
#include <iostream>
using namespace std;
int main() {
int two_dimensional[3][5];
two_dimensional[0][0] = 1;
two_dimensional[1][0] = 2;
two_dimensional[2][0] = 3;
two_dimensional[0][1] = 4;
two_dimensional[1][1] = 5;
two_dimensional[2][1] = 6;
two_dimensional[0][2] = 7;
two_dimensional[1][2] = 8;
two_dimensional[2][2] = 9;
two_dimensional[0][3] = 10;
two_dimensional[1][3] = 11;
two_dimensional[2][3] = 12;
two_dimensional[0][4] = 13;
two_dimensional[1][4] = 14;
two_dimensional[2][4] = 15;
cout << two_dimensional[3][5];
cin.get();
return 0;
}
I would like to display all the values of my array