Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // to oczywiście nie działa, ale podając i chciałem zaznaczyć ideę
- class comp {
- public:
- int i;
- comp(int _i) : i(_i) {}
- bool operator() (const int& lhs, const int& rhs) {
- return D[lhs][i] < D[rhs][i];
- }
- };
- // główna funkcja. Tutaj chciałbym za każdym razem operować na innym zbiorze
- for (int i = 0; i < 15; i++) {
- multiset<int, comp(i)> s;
- // rozne podfunkcje jak void zrobCosNaSecie(multiset<int, comp(i)>& s)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement