Name: Anonymous 2013-03-18 21:30
int iZero = 0;
int iTwo = 0;
char aTest[2][2] = {{'4','4'}, {'X','O'}};
aTest[1][0] = 'b';
if(aTest[iZero][iTwo] == 'X'){
cout << "Garsh\n";
};
//Doesn't work...
//[Error] 'iZero' was not declared in this scope
//[Error] 'iTwo' was not declared in this scope
How do I fix it? So I can reference the matrix with two given variables?
int iTwo = 0;
char aTest[2][2] = {{'4','4'}, {'X','O'}};
aTest[1][0] = 'b';
if(aTest[iZero][iTwo] == 'X'){
cout << "Garsh\n";
};
//Doesn't work...
//[Error] 'iZero' was not declared in this scope
//[Error] 'iTwo' was not declared in this scope
How do I fix it? So I can reference the matrix with two given variables?