[My Blog]
All roads lead to JavaRanch
[My Blog]
All roads lead to JavaRanch
[My Blog]
All roads lead to JavaRanch
Originally posted by John Lockheart:
I've almost got it working, but i'm having difficulty with my coordinate system x and y. The way you wrote it matrix[y][x++] is the same way i did meaning x will always start from 1 not 0. It needs to start from 0,0 and proceed filling all the columns (if max column met, increase row and restart column). And if a string is encountered, skip it, and store a value in its place in the matrix. Or if the special case encountered, store that value n times.
"I'm not back."  Bill Harding, Twister
Could you hold this kitten for a sec? I need to adjust this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardenergift.com
