Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. void Element::wyswietlStan()
  2. {
  3. cout << "Kolor linii: " << color << endl << "Kolor wypelnienia: " << fill << endl << "Grubosc lini: " << border << endl;
  4. }
  5.  
  6. template <class TYP>
  7. void Kontener<TYP>::wyswietlWszystkieObiekty(){
  8. if (liczba_elementow != 0)
  9. for (int i = 0; i < liczba_elementow; i++){
  10. //cout << "Obiekt nr " << i << endl
  11. cout << "Obiekt nr " << indexOf((*this)[i]) << endl;
  12. (*this)[i].wyswietlStan();
  13. }
  14. else
  15. cout << "Brak obiektow." << endl;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement