// acct.h   Linked List of Names and Acct Numbers.
// P. Conrad    04/04/05


#ifndef ACCT_H
#define ACCT_H

const int NAME_MAX = 20;


// Notice that the Acct_C class is NOT an element in a linked list.
// We will make a separate class for that.
// The "Account" object should not "know" that it is part of a linked list.
// That way, we can make an array of accounts, or a linked list of accts,
// or a tree, or whatever.

class Acct_C
{
 private:
  int acctNum;
  char name[NAME_MAX];
 public:
  Acct_C(int theAcctNum, const char *theName);
  Acct_C(const Acct_C & orig); // copy constructor

  int getAcctNum() const;
  const char *getName() const;
  void setAcctNum(int theAcctNum);
  void setName(const char *theName);
};

#endif









