Advertisement
NoName977

Napis.h

Jan 21st, 2018
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. #ifndef NAPIS_H
  2. #define NAPIS_H
  3. #include <iostream>
  4. #include <string>
  5. using namespace std;
  6. class Napis
  7. {
  8.     public:
  9.  
  10.         Napis(const char* nap = "");
  11.         Napis(const Napis & wzor);
  12.         Napis & operator=(const Napis & wzor);
  13.         bool operator==(const Napis & wzor) const;
  14.         ~Napis();
  15.         const char* Zwroc() const;
  16.         void Ustaw(const char* nowy_napis);
  17.         void Wypisz() const;
  18.         void Wpisz();
  19.         int SprawdzNapis(const char* por_napis) const;
  20.         friend ostream &operator <<(ostream & wy, const Napis & p);
  21.         friend istream &operator >>(istream & we, Napis & p);
  22.  
  23.  
  24.     private:
  25.         char * m_pszNapis;
  26.         int m_nD1;
  27.  
  28.  
  29. };
  30.  
  31. #endif // NAPIS_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement