But the problem is that the numbers wont print to the screen. Any ideas why?
this is a school project and its going to be a tic tac toe game. I have been trying different things and i just cant figure out why it wont print the numbers. From what my lesson says, the exact same code i have should print the numbers to the screen but it does not.
The board declaration on line 15 "hides" the declaration on line 7. That means that when you put data in board in main, you are doing so with the local board, not the global one (the global board is the one that showboard uses).
Just remove line 15, do some Googleing on scope rules as well as the debacle surrounding the use of global variables.