wektor mi sortuje a listy nie chce po polu struktury
sort(vector_x.begin(),vector_x.end(),compare_x()); // vector STL
sort(lista_x.begin(),lista_x.end(),compare_x()); // List STL
czy musi być class compare funkcja z iteratorem?
W czym problem. Jeden z błędów kompilatora :
\c++\bits\stl_algo.h|1964|error:
no match for 'operator-'
(operand types are 'std::_List_iterator<punkt>' and
'std::_List_iterator<punkt>')|
czy musi być class compare funkcja z iteratorem?