I'm making a basic connect five game and as much as I hate to admit it I'm having problems calling my functions. I'm not sure if I'm missing out any required information in the function calls or not but without calling them in main and just running them the program works as below but when I remove the commented out lines the output is just the line "Press any key to continue" and nothing comes up. Apologies for the menial question but I've been reading text book and the net and to my knowledge they should work. Any help would be much appreciated.
#include <stdio.h>
#define NONE 0
#define PLYR_TOKEN 1
#define COMP_TOKEN 6
int board[9][9];
int x, y;
void main()
//{
// void get_coodinates();
// void print_matrix();
//}
//void print_matrix()
{
int i, j, k=9, z=10;
printf("\n");
for(j = 0; j < k; ++j)
{
printf("\n %d", --z);
for(i = 0; i < k; ++i)
printf(" %d", board[x][y]);
}
printf("\n | 1 2 3 4 5 6 7 8 9 \n");
// }
//void get_coordinates()
{
do{
printf("\n");
printf("\n");
printf("Input a column number then row number e.g. (1 4) ");
(scanf("%d %d", &x, &y));
if (x < 1 || y <1 || x > 9 || y > 9)
printf("\nERROR: Values must be between 1-9\n\n");
else
printf("\n %s %d, %d. \n",
"The position you input was", x, y);
} while (x < 1 || y <1 || x > 9 || y > 9);
if (board[x - 1][y - 1] != 0)
{
printf("Position taken enter new position\n");
}
else (board[x -1][y -1] = PLYR_TOKEN);
}
}