Guest User

Untitled

a guest
Oct 19th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. class klasa
  2. {
  3. private:
  4.     string nazwa;
  5.     list<const klasa&> lista;
  6. public:
  7. //nie istotne
  8. }
  9.  
  10. ostream& operator<<(ostream& out, const klasa &k)
  11. {
  12.     out << k.nazwa << ": ";
  13.     ostream_iterator<string> it(out, ", ");
  14.     copy(k.lista.begin(), k.lista.end(), it);
  15.     return out;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment