home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / magazine / pctchnqs / 1990 / number1 / tabexp.hpp < prev    next >
Text File  |  1990-02-15  |  491b  |  16 lines

  1. /* Listing 3. Header file for tabexp class */
  2.  
  3. #include <stdio.h>
  4.  
  5. class tabexp {
  6. private:
  7.   FILE *f;       /* input file stream               */
  8.   int col;       /* current column of current line  */
  9.   int tabsize;   /* given tab size                  */
  10.   int tabcnt;    /* amount of spaces left to tab    */
  11. public:
  12.   void init(FILE *fp, int ts); /* initializer   */
  13.   int get(void);               /* get next char */
  14.   tabexp(FILE *fp, int ts);    /* constructor   */
  15. };
  16.