Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "linkedList.h"
- class Point {
- friend class LinkedList;
- public:
- //konstruktor bezargumentowy - ustawia 0,0 i null w nazwie
- Point();
- //kontruktor ustawia punkt i nazwę "miejsce nieznane"
- Point(double,double);
- //konstruktor ustawia nazwę i współrzędne
- Point(const char*,double,double);
- //konstruktor kopiujący
- Point(const Point&);
- //konstruktor przenoszący
- Point(Point&&);
- // przeładowanie porównania
- bool Point::operator==(Point& reference);
- // przeładowanie znak większosci
- bool Point::operator>(Point& reference);
- // przeładowanie znak mniejszosci
- bool operator<(Point& reference);
- // przeładowanie strumienia
- std::ostream& operator<<(ostream& Stream, const Point& reference);
- //funkcje get
- double getX() { return _x; }
- double getY() { return _y; }
- const char* getName() { return _name; };
- //wypisz punkt
- void fullPrint();
- //dunkcja zmiany nazwy
- void changeName(const char*);
- //zmiana współrzędnych
- void move(double,double);
- //destruktor
- ~Point();
- private:
- char* _name;
- double _x;
- double _y;
- Point* next;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement