// linedrawing.cpp : Defines the entry point for the console application. // #include #include #define ROWS 20 #define COLS 50 class FrameBuffer { private: char buf[ROWS][COLS]; public: FrameBuffer::FrameBuffer(void) { clear(); } void FrameBuffer::clear() { int x, y; for (y=0; y> x1; if (x1 == -1) break; cin >> y1 >> x2 >> y2; fb.drawLine(x1, y1, x2, y2); } fb.print(); return 0; }