home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / word2x0a.zip / source / text-table.h < prev    next >
C/C++ Source or Header  |  1997-03-22  |  453b  |  26 lines

  1. /* $Id: text-table.h,v 1.2 1997/03/22 17:07:58 dps Exp $ */
  2.  
  3. #ifndef __txt_table__
  4. #define __txt_table__
  5. #include <stdio.h>
  6.  
  7. class text_table
  8. {
  9. private:
  10.     struct col_info
  11.     {
  12.     const char **data;
  13.     struct col_info *next;
  14.     };
  15.     int cols;
  16.     int rows;
  17.     struct col_info *cdata;
  18.  
  19. public:
  20.     const char *print_table(int, FILE *);
  21.     int set(int, int, const char *);
  22.     text_table(int, int);
  23.     ~text_table(void);
  24. };
  25. #endif /* __txt_table__ */
  26.