// 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, char theName[NAME_MAX]);
  Acct_C() // needed to create an array of these objects
    { acctNum = -1; name[0] = 0; } // name is "empty string"
  int getAcctNum() const;
  char *getName() const;
  void setAcctNum(int theAcctNum);
  void setName(char theName[NAME_MAX]);
};

#endif
