Originally posted by Munkey01
But why can't I declare my array like it is?
You can declare it like it is, but you can't dump that much data into the way it's declared. Just change it to:
Code:
char board[9][4] = { "0.0", "0.1", "0.2", "1.0", "1.1", "1.2", "2.0", "2.1", "2.2" };
If you insist on declaring it the way you have then you'll be restricted to what you can initialize it to. Like this:
Code:
char board[3][3] = {"0.", "1.", "2."};
The reason why is because of the basic semantics of the language. If you want to store X amount of information in an array then you need to declare the array to size X.