1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef TOUR_H #define TOUR_H #include "Node.h" #include "Point.h" class Tour { public: Tour(); ~Tour(); void show() const; void draw(QGraphicsScene* scene) const; int size() const; double distance() const; void insertNearest(Point p); void insertSmallest(Point p); private: Node *first; }; #endif // TOUR_H