Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001032A

 
Output of file : 1001032A contained in archive : CUJ9201.ZIP
//////////////////////////////////////////////////
// PAYLIST.H
// Concrete List Class For a Payroll List.
// By David Brumbaugh
//////////////////////////////////////////////////

#ifndef PAYLIST_H
#define PAYLIST_H
#include "pinclas.h"

struct employee
{
char last[21], first[11];
double pay_rate; // Dollars per day
long days_worked;
// Days worked in this pay period.
};

class PayList: public Pfm_List {
protected:
employee empBuffer;

public:
// Constructors
PayList():Pfm_List("payroll.db","Employees")
{default_key = DB_Column(table,"LastFirst"); }
PayList(DB &open_db):Pfm_List(open_db, "Employees")
{default_key = DB_Column(table,"LastFirst");}
PayList(DB &open_db, DBTAB &db_table):
Pfm_List(open_db, db_table)
{default_key = DB_Column(table,"LastFirst");}

// List Navigation
virtual Boolean find (char *last),
find(char *last, char *first);
virtual Boolean find(void *key)
{return (find( (char *) key));}


// List Interface
virtual void add(employee &emp);
virtual void replace(employee &emp);
virtual void get(employee &emp);
virtual void *current()
{ get(empBuffer); return (void *) &empBuffer;}

};
#endif



  3 Responses to “Category : Files from Magazines
Archive   : CUJ9201.ZIP
Filename : 1001032A

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/