I have to write a code to build an array like this:
1,6 1,0 2,3
3,4 5,6 4,5
7,6 1,2 9,7
Where the numbers are coordinates which have to be "separated" when taken in consideration
Like:
cell[2][2]---> x=5 y=6
I decided to make a char array, so that with atoi() I then convert it to numbers, but I cannot declare the array:
char iaMatrix[iSize][iSize][3]={{'1,2','1,0'}
{'1,0','6,4'}};
It gives me error:
missing } for lots of times.
What should I do? Thank you.