equinox wrote:Hi at ALL.
GLOBAL CODE:
int N[15] = {{2 3 4},{2 6 11}};
This is not a proper array. you have to fill in all 15 places and all numbers need to be separated with comma.
- Code: Select all
int N[15] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 };
and it is one dimensional.
- Code: Select all
int N[5][3] = {{1, 2, 3}, {4, 5, 6}, {7, 8, 9}, {10, 11, 12}, {13, 14, 15}};
Is correct. All places must be initialized with a number. And they must follow the structure of the array.
draw:
textnumber = N[0]; -> 2 3 4
textnumber = N[1]; -> 2 6 11
.....
not work. Why?
N[0] can only store one number. 2, 3, 4 for example or 234. No spaces as DST said.