#ifndef CANVASH #define CANVASH #include using namespace std; #include "point.h" #include "line.h" class canvas { unsigned width, height; //in puxels public: canvas(unsigned width = 300, unsigned height = 150); ~canvas(); friend canvas& operator<<(canvas& c, const line& l); friend canvas& operator<<(canvas& c, canvas& (*p)(canvas &)) { return p(c); } }; //i/o manipulators canvas& black(canvas& c); canvas& red(canvas& c); #endif