0

can any one identify any problems in my code?

it keeps crashing once it reaches the else condition.

```
void path(char paths[][70], int sROW, int sCOL, int fROW , int fCOL) //recursive path function
{
if (paths[sROW][sCOL]=='E')
{
for(int i=0; i<20; i++)
{
cout<<endl;
for(int j=0;j<70; j++)
{
cout<<paths[i][j]; // display final maze with path
}
}
return;
}
else
if (paths[sROW][sCOL]==' ' && paths[sROW+1<=19][sCOL])//if path is blank charater move up once space
paths[sROW+1][sCOL]='+'; //mark position
path(paths,sROW+1,sCOL,fROW,fCOL); // call path function
if (paths[sROW][sCOL+1]==' ' && paths[sROW][sCOL+1<=69])//if path is blank charater move one space to the left
paths[sROW][sCOL+1]='+'; //mark position
path(paths,sROW,sCOL+1,fROW,fCOL); // call path function
if (paths[sROW-1][sCOL]==' ' && paths[sROW-1>=0][sCOL])//if path is blank charater move down space to the left
paths[sROW-1][sCOL]='+'; //mark position
path(paths,sROW-1,sCOL,fROW,fCOL); // call path function
if (paths[sROW][sCOL-1]==' ' && paths[sROW][sCOL-1>=0])//if path is blank charater move one space to the right
paths[sROW][sCOL-1]='+'; //mark position
path(paths,sROW,sCOL-1,fROW,fCOL); // call path function
} //end function
```