Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class klasa
- {
- private:
- string nazwa;
- list<const klasa&> lista;
- public:
- //nie istotne
- }
- ostream& operator<<(ostream& out, const klasa &k)
- {
- out << k.nazwa << ": ";
- ostream_iterator<string> it(out, ", ");
- copy(k.lista.begin(), k.lista.end(), it);
- return out;
- }
Advertisement
Add Comment
Please, Sign In to add comment