Advertisement
Guest User

Untitled

a guest
Aug 28th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. std::deque<Vertex> mainVertex; //include all vertex of graph
  2.         std::deque<Vertex*> sortList;
  3.  
  4.         for(auto x:mainVertex) // nie działa
  5.                 sortList.push_back(&x);
  6.  
  7.         for(int i=0;i<mainVertex.size();++i) // działa :P
  8.                 sortList.push_back(&mainVertex.at(i));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement