
-----------------------------------
A.J
Tue Mar 25, 2008 8:27 pm

Help on recursive program!
-----------------------------------
Here's the code to one of my DFS functions.
I'm checking how many paths are there between 2 points on a grid of length 't'.
But, my ;count variable always returns 0, even though I'm increasing it when a solution is found (And there's a solution that is found, as you can see by my DEBUG Prints).
Here is the code :

void DFS(int x, int y, int fx, int fy, int curp,int count,int t)
{
    if (curp>first>>last;
   swap(&first,&last);
   cout>first>>last;
   swap(&first,&last);
   cout