Advertisement
Guest User

Untitled

a guest
Jan 19th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. std::vector<std::string> wektor ; //def wektora
  2. std::vector< std::shared_ptr<Wypozyczenie>>::iterator it ; //def iteratora
  3. for( it = lista_wypozyczen.begin() ; it < lista_wypozyczen.end() ; it++ )
  4. {
  5. if( lista == jaka_lista::bierzace_sort_po_dacie || lista == jaka_lista::bierzace_sort_po_klientach )
  6. {
  7. std::string dane = (*it)->get_dane() ; // (*it)-> czyli wejscie w klase Wypozycznie skaladowana w wektorze i uzycie
  8. wektor.push_back( dane ) ; // jej metody get_dane()
  9. }
  10. else
  11. {
  12. std::string dane = (*it)->get_dane_archiwum() ;
  13. wektor.push_back( dane ) ;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement