/*------------------------------------------------------------ Copyright (C) 1999 by Rolf Backofen, Sebastian Will. All Rights Reserved. Permission to use, copy, modify, and distribute this software and its documentation for NON-COMMERCIAL purposes and without fee is hereby granted provided that this copyright notice appears in all copies. THE AUTHORS AND PUBLISHER MAKE NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THE AUTHORS AND PUBLISHER SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. ------------------------------------------------------------*/ #ifndef PRINTARRAY_HH #define PRINTARRAY_HH #include #include "basicdef.hh" #include "matrix.hh" // ======================================================================= // // CLASS: PrintArray // // DESCRIPTION: PrintArray contains an array of char (which is // graphical object for printing). One can set chars, // and let the object print itself out onto cout. // // // AUTHOR: Rolf Backofen // // ======================================================================= class PrintArray: matrix { public: PrintArray(int cols, int rows); void print(); void set(int x, int y, char c) { (*this)[x][y]=c; } char get(int x,int y) { return (*this)[x][y];} }; #endif