Ah yes. I'm sorry for leaving out these information.
Basically, this is a "game" of the mouse and cheese. The mouse is represented with M, which is the starting point of the maze itself. C is the cheese, which is the ending point of the maze.
Thus, the objective of the whole program is to reach from M to C!
The highlighted text from
main function:
for (int start_loop = 1; start_loop>0; start_loop++)
{
if (status_mode != "NONE")
{
for (int indexrow=0; indexrow<8; indexrow++)
{
for (int indexcol=0; indexcol<16;indexcol++)
{
cout << gameArray[indexrow][indexcol];
}
}
cout << endl;
}
The red highlighted text is the "infinite loop", which will keep prompting the user for an action after a particular action has been performed. I'm really sorry if I've confused you...
The for loop in the main function is just to show the maze, it has no relation in the pathfinding/insert the maze into array.
Once again, I'm sorry if I didn't provide sufficient information.
Here's the results I've gotten so far...
http://i37.tinypic.com/2rpblzm.jpg