Hi everyone, I have a question about a maze program i have to write. All i want to accomplish at the moment is to just locate the start and end coordinates of a maze the user would be inputting on stdin.
For some reason the program gives me the correct y coordinate but not the x.
For exp: if i were to input: 6 4
o#####
.#####
.#####
*#####
my program would tell me the start("o") is at 1 0(supposed to be 0 0) and that end(*) is at 4 0(supposed to be 3 0).
Thank you for your help!



1Likes
LinkBack URL
About LinkBacks



