The * is for the player's piece so to speak.
The o is to show that this is a square you can move to.
The X is to show that this is a wall and you can't move there.

I'm using DevC++ as my compiler.