Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Cpp noobie problem

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?

Name: Anonymous 2013-03-19 0:25

>>8
but finding the plus sign on the keyboard is haaaaaaaaaaaaard

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List