Advertisement
Patresss

Untitled

Nov 23rd, 2014
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.85 KB | None | 0 0
  1. #ifndef _LAB05_H_
  2. #define _LAB05_H_
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. class Punkt
  8. {
  9.     private:
  10.         int _x;
  11.         int _y;
  12.  
  13.     public:
  14.  
  15.         Punkt();
  16.         Punkt (int x, int y);
  17.         friend class Wektor;
  18.         Punkt clone() const;
  19.         Punkt set(int x);
  20.         Punkt set(int x, int y);
  21.         void print();
  22.         ~Punkt();
  23. };
  24.  
  25. class Wektor
  26. {
  27.     private:
  28.         int _x1;
  29.         int _y1;       
  30.         int _x2;
  31.         int _y2;
  32.  
  33.     public:
  34.         Wektor();
  35.         Wektor (int x1, int y1, int x2, int y2);
  36.         Punkt set_end(Punkt p);
  37.         void set_beg(Punkt &p);
  38.         void set_end(int x, int y);
  39.  
  40.         void print() const;
  41.         void set(Punkt &p1, const Punkt &p2);
  42.         Punkt get_beg();
  43.         ~Wektor();
  44.  
  45. };
  46.  
  47. class  info
  48. {
  49.     private:
  50.  
  51.         static int _des_pun;
  52.         static int _des_wec;
  53.     public:
  54.         info();
  55.    
  56.         static void print();
  57.         static void des_plusp();
  58.         static void des_plusw();
  59. };
  60.  
  61. void nop();
  62.  
  63.  
  64.  
  65.  
  66. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement