Error C2065 'wypisz_dane': undeclared identifier
Ktoś może się orientuje jak to naprawić?
Kod: Zaznacz cały
void Student::wypisz_dane()
{
cout << "Nr albumu: " << nr_albumu;
cout << "\tImie: " << imie;
cout << "\tNazwisko: " << nazwisko << endl;
}
vector <Student *> vStudenci; //deklaracja wektora
//sortowanie
sort(vStudenci.begin(), vStudenci.end() );
cout << "Lista: ";
for_each(vStudenci.begin(), vStudenci.end(), wypisz_dane);