BankAccount + templated linked list

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eihabisaac
    New Member
    • Aug 2007
    • 38

    BankAccount + templated linked list

    hey everybody

    im having some trouble with my assignment

    we should write a program that will handle with a templated linkedlist for a bank account to add/delete amount to the account or sort it

    i have the templated linked list class and i wrote all the constructor and the destructor and other thing for the bank account class but the problem is that i don't have any idea how to link the templated linkedlist with the bankaccount class so i can for example to sort the accounts

    thanks in advance
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    The bankaccount class should be used as the template parameter

    list<bankaccoun t> accountList;

    Comment

    Working...