Guest User

Untitled

a guest
May 17th, 2018
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.00 KB | None | 0 0
  1. Specyfikacja
  2. #pragma once
  3. #include "Komunikat.h"
  4. class Specyfikacja
  5. {
  6. protected:
  7.     struct Element
  8.     {
  9.         Komunikat *dane;
  10.         Element *nast;
  11.         Element (Komunikat *d) :dane(d), nast(0)
  12.         {};
  13.         Element(const Komunikat & d);
  14.         Element() :dane(0), nast(0)
  15.         {};
  16.     };
  17.     Element *head;
  18.     Element *tail;
  19. public:
  20.    
  21.     Specyfikacja(void);
  22.     void add(const Komunikat &k);
  23.     void put(const Komunikat &k);
  24.     virtual void print();
  25.     Specyfikacja& operator--();
  26.     Specyfikacja& operator= (const Specyfikacja &s);
  27.     virtual ~Specyfikacja(void);
  28. };
  29.  
  30. ---------------------------------
  31. Specsort
  32.  
  33. #pragma once
  34. #include "specyfikacja.h"
  35. class specsort :
  36.     public Specyfikacja
  37. {
  38. public:
  39.     int dlugosc;
  40.     specsort& operator=(const Specyfikacja &s);
  41.     specsort& operator-=(const Specyfikacja &zrobione);
  42.     operator int();
  43.     friend ostream& operator<< (ostream &o, const specsort & s);
  44.     void put(Komunikat &k);
  45.     void print();
  46.     specsort(void);
  47.     virtual ~specsort(void);
  48. };
Add Comment
Please, Sign In to add comment