1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
const int SIZE = 4;
int main ()
{
char answer;
int X1, Y1, X2, Y2;
int GameArray[SIZE][SIZE] = { { 1, 2, 3, 4},
{ 5, 6, 7, 8},
{ 1, 2, 3, 4},
{ 5, 6, 7, 8} };
bool isFaceUp[SIZE][SIZE]; // declaration for the number of rows and columns and the array size of 20 rows and 15 columns as a max
for(int i = 0; i < SIZE; i++) //set all values of isFaceUp to false so all cards are face down
{
for(int a = 0; a <SIZE; a++)
{
isFaceUp[i][a] = false;
}
}
|