Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Zatvor.h"
- #include "Celija.h"
- ostream& operator <<(ostream& os, const Zatvor& z)
- {
- os << z.razina << " " << z.ime << " " << z.prezime << endl;
- vector<Celija> temp = z.celije;
- vector<Celija>::iterator i;
- for(i = temp.begin(); i != temp.end() ; i++)
- {
- os << i->brojKreveta << " " << i->blok << " " << i->broj << endl;
- }
- return os;
- }
- Zatvor::Zatvor(string razina1, string ime1, string prezime1)
- {
- razina=razina1;
- ime=ime1;
- prezime=prezime1;
- }
- Zatvor Zatvor::operator +=(const Celija &c)
- {
- celije.push_back(c);
- return *this;
- }
- Zatvor Zatvor::operator --(int)
- {
- celije.pop_back();
- return *this;
- }
- Zatvor::Zatvor(void)
- {
- }
- Zatvor::~Zatvor(void)
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement