Your Ad Here

Friday, March 6, 2009

pointer trouble

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...
Your Ad Here

No comments: