Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- std::vector<std::string> wektor ; //def wektora
- std::vector< std::shared_ptr<Wypozyczenie>>::iterator it ; //def iteratora
- for( it = lista_wypozyczen.begin() ; it < lista_wypozyczen.end() ; it++ )
- {
- if( lista == jaka_lista::bierzace_sort_po_dacie || lista == jaka_lista::bierzace_sort_po_klientach )
- {
- std::string dane = (*it)->get_dane() ; // (*it)-> czyli wejscie w klase Wypozycznie skaladowana w wektorze i uzycie
- wektor.push_back( dane ) ; // jej metody get_dane()
- }
- else
- {
- std::string dane = (*it)->get_dane_archiwum() ;
- wektor.push_back( dane ) ;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement