hello this is my assinment to make a maze game i have written this vode but when i enter character to move $ sign it does not print my maze again please can any one help me out thank u heres the code
i am using codeblocks as a compiler
#include <iostream>
#include<conio.h>
using namespace std;
int xstart=2;
int ystart = 0;
const int xmax = 8;
const int ymax = 8;
char maze[xmax][ymax] =
{
{'#','#','#','#','#','#','#','#'},
{'#','.','.','.','.','.','.','#'},
{'.','.','#','#','#','.','#','#'},
{'#','.','.','.','#','.','.','#'},
{'#','.','#','#','#','#','.','#'},
{'#','.','.','#','.','.','#','#'},
{'#','#','.','#','#','.','.','.'},
{'#','#','#','#','#','#','#','#'}
};
void printMaze();
int main()
{
cout<<"\t solve this maze!!!!!! "<<endl;
printMaze();
maze[xstart][ystart]='$';
printMaze();
char pos;
int n=20;
while( n>0)
{
cout<<"Enter \n w to move north \n a to move west \n d to move east \n s to move south \n q to move north-west \n e to move north-east \n z to move south-west \n s to move south east \n";
cin>>pos;
for(int row = 0; row < xmax; row++)