Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Specyfikacja
- #pragma once
- #include "Komunikat.h"
- class Specyfikacja
- {
- protected:
- struct Element
- {
- Komunikat *dane;
- Element *nast;
- Element (Komunikat *d) :dane(d), nast(0)
- {};
- Element(const Komunikat & d);
- Element() :dane(0), nast(0)
- {};
- };
- Element *head;
- Element *tail;
- public:
- Specyfikacja(void);
- void add(const Komunikat &k);
- void put(const Komunikat &k);
- virtual void print();
- Specyfikacja& operator--();
- Specyfikacja& operator= (const Specyfikacja &s);
- virtual ~Specyfikacja(void);
- };
- ---------------------------------
- Specsort
- #pragma once
- #include "specyfikacja.h"
- class specsort :
- public Specyfikacja
- {
- public:
- int dlugosc;
- specsort& operator=(const Specyfikacja &s);
- specsort& operator-=(const Specyfikacja &zrobione);
- operator int();
- friend ostream& operator<< (ostream &o, const specsort & s);
- void put(Komunikat &k);
- void print();
- specsort(void);
- virtual ~specsort(void);
- };
Add Comment
Please, Sign In to add comment