home *** CD-ROM | disk | FTP | other *** search
/ Prima Shareware 3 / DuCom_Prima-Shareware-3_cd1.bin / PROGRAMO / C / TPXCLS / TEST.HPP < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-10  |  985 b   |  49 lines

  1. // test.hpp
  2. //----------------------------------------------------------------------------
  3.  
  4. extern "C" {
  5.  
  6. #include <dir.h>
  7.  
  8. }
  9.  
  10. #include "tpxclass.hpp"
  11.  
  12. //----------------------------------------------------------------------------
  13.  
  14. struct myfile_data{
  15.  
  16.   int rec_num;
  17.   char name[31],
  18.            address[41],
  19.              city[21],
  20.              state[3],
  21.              zip[10];
  22.      double net_income;
  23.  
  24. };
  25.  
  26.  
  27. struct TMYPXFILE : public TPXFile {
  28.  
  29.   int create_data_file(void);
  30.   myfile_data data;
  31.  
  32. };
  33.  
  34. //----------------------------------------------------------------------------
  35. TMYPXFILE MyPXFile;
  36. //----------------------------------------------------------------------------
  37.  
  38. void init_px_engine(void);
  39. void init_px_file(void);
  40. void add_records(void);
  41. void display_records(void);
  42. void search_primary(void);
  43. void search_secondary(void);
  44. void display_record(void);
  45. void kill_px_engine(void);
  46.  
  47. //----------------------------------------------------------------------------
  48.  
  49.