//here's the code
EDIT
/*###################################*/Code:#include <iostream> #include <stdlib.h> using namespace std; int main() { int SomeArray[5][2]= {{0,0}, {1,2}, {2,4}, {3,6}, {4,8}}; for(int i=0; i<5; i++) for (int j=0; j<2; j++) { cout<<"SomeArray["<<i<<"]["<<j<<"]: "; cout<<SomeArray[i][j]<<endl; } system("PAUSE"); return 0; }
OUTPUT:
SomeArray[0][0]: 0// I don't get what is the computer refering to here, in terms of the code.
SomeArray[0][1]: 0
SomeArray[1][0]: 1
SomeArray[1][1]: 2
SomeArray[2][0]: 2// neither here
SomeArray[2][1]: 4
SomeArray[3][0]: 3
SomeArray[3][1]: 6
SomeArray[4][0]: 4
SomeArray[4][1]: 8// basically all of these
Press any key to continue . . .
// Please help



LinkBack URL
About LinkBacks


