Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void showPathes()
- {
- for (auto x : nodes)
- {
- int cur = x.n;
- cout << cur;
- while (cur != -1)
- {
- cout << "<-" << cur;
- cur = nodes[cur].p;
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement