Advertisement
hibbzboi

Untitled

Jun 2nd, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1.     Punkt* start = &startowy;
  2.  
  3.     Punkt* poszukiwany = &cel;
  4.  
  5.     Punkt* koniec = &listaWszystkichPunktow[cel.x][cel.y];
  6.     do
  7.     {
  8.         for (int i = 0; i < witam.size(); i++)
  9.         {
  10.             if (witam[i]->x == koniec->rodzic->x && witam[i]->y == koniec->rodzic->y)
  11.             {
  12.                 poszukiwany = &listaWszystkichPunktow[witam[i]->x][witam[i]->y];
  13.             }
  14.         }
  15.     } while (poszukiwany = start);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement