[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
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |