SOURCE FILE: waitList2.cpp
const int MAX_STRING = 50;
typedef char nameType[MAX_STRING+1];
// wait list - people waiting for certain titles
typedef struct waitNode* waitPtrType;
struct waitNode
{ nameType Who;
waitPtrType Next;
}; // end struct
// stock item
class itemClass
{
public:
// . . .
private:
nameType Title;
int Have, Want;
}; // end class
// inventory list - list of stock items
typedef struct stockNode* stockPtrType;
struct stockNode
{ itemClass Item;
waitPtrType WaitHead, WaitTail;
stockPtrType Next;
}; // end struct