nguyentruong98

Untitled

Dec 9th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. while (q->head != NULL)
  2.       {
  3.             popQueue(q);
  4.             q->head = frontQueue(q);
  5.             for (int i = 1; i <= m; i++)
  6.             {
  7.                   if (map[n][i] == 1)
  8.                         pushQueue(i);
  9.                   if (map[n][i] == end)
  10.                         break;
  11.             }
  12.       }
Advertisement
Add Comment
Please, Sign In to add comment