#pragma once #include #include using point_t = std::pair; using plot_t = std::vector; class Plot { public: plot_t points; int size; Plot(); Plot(plot_t _points); point_t get(int i); double get_x(int i); double get_y(int i); void add(point_t Point); void display(); void write_in_file(std::string filename); friend std::ostream& operator<<(std::ostream& os, const Plot& plot); };