I'm writing 2 classes that both contain pointers to each other, but it won't complile at all. Any help?
Code:
---------
class Loan
{
private:
double annualInterestRate;
USHORT numberOfYears;
double loanAmount;
LoanList * next;
LoanList * previos;
};
class LoanList
{
private:
LoanList * first;
LoanList * last;
USHORT lastIndex;
USHORT &size;
LoanList * current;
USHORT currentIndex;
Loan * loan;
public:
LoanList();
LoanList * operator[](USHORT offset);
};
---------
Read More...
Friday, March 6, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment