bool czy_mniejszy(const pkl& a,const pkl& b)
{
return (a.punkty<b.punkty);
}
void Tabela::wyswietl_tabele()
{
sort(zztabeli.begin(),zztabeli.end(),czy_mniejszy);
}
//zz tabela jest wypelniona obiektami klasy pkl
#ifndef PKL_H
#define PKL_H
#include<string>
class pkl
{
public:
pkl(std::string,int liczby);
virtual ~pkl();
int pokaz_punkty();
//protected:
// private:
int punkty;
std::string nazwa_klubu;
};
#endif // PKL_H