#include "Account-new.h" #include "AcctListNode.h" // create a node using a specific account AcctNode::AcctNode (Account & val) { value = val; // pointers point nowhere at first nextLink = 0; prevLink = 0; } Account AcctNode::GetValue() const { return value; } Account & AcctNode::GetValue(){ return value; } // return pointer to the next node in a list AcctNode * AcctNode::NextNode() { return nextLink; } // return pointer to the previous node in a list AcctNode * AcctNode::PrevNode(){ return prevLink; } // allow outputing a node - just output the account object ostream & operator << (ostream & strOut, const AcctNode & toShow) { strOut << toShow.GetValue(); return strOut; }