Code:
class BigInt : public DList
{
public:
BigInt();
~BigInt();
//BigInt toBigInt(DList list);
void toBinary(DList list);
//void toDecimal();
private:
DList binarylist();
DList intlist();
};
You declared binarylist as a function above (in bold).
Code:
void BigInt::toBinary(DList list)
{
int temp;
int size = list.size();
for(int i=0, compare;i<size;i++)
{
compare = 8;
temp = list.at(i);
for(int x=0;x<4;x++)
{
if(temp >= compare)
{
temp -= compare;
binarylist.pushTail(1);
}
else
binarylist.pushTail(0);
compare /= 2;
}
}
}
But you use it as an object here. I assume those are supposed to be member variables, not functions.
PS. If they are member variables then that also makes me wonder why BigInt derives from DList and also contains two DLists.