'vector'에 해당되는 글 1건

  1. 2012.05.31 STL - vector
2012. 5. 31. 00:18

vector<Edge> graph;


graph.push_back( Edge() );

graph.push_back( Edge() );

graph.push_back( Edge() );



vector<Edge>::Iterator iter;


for( iter = graph.begin(); iter != graph.end(); ++iter )

    cout<< iter->key << endl;


sort(graph.begin(), graph.end(), less<Edge>());

Posted by Нуеоп
이전버튼 1 이전버튼