#include inline int abs(int x) {return 0<=x ? x : -x;} class canvas { public: canvas(int sx, int sy); ~canvas(); void clear(); void set(int x, int y); void print(std::ostream &os); private: int size_x; int size_y; char **p; canvas(const canvas&); canvas& operator=(const canvas&); }; std::ostream& operator<<(std::ostream& os, canvas& c) { c.print(os); return os; } //canvas::canvas(): size_x(0), size_y(0), p(0) {} canvas::canvas(int sx, int sy): size_x(sx), size_y(sy) { p = new char*[size_x]; for (int x=0; xclear(); } canvas::~canvas() { for (int x=0; x