Invalid use of template-name 'BigNumber' without and argument list

Hi I keep having this error message for the part "BigNumber B1,B2,RES;" where at the button, can any1 help me out please, here is the code. I tried adding to the class, but none of them worked, I know t his might be simple for alot of guys here,but I just starting to do c++, I am still trying to get the hang of it, so please help, many thanks.


template <class T>

class BigNumber {
private:
struct Node {
T data;
Node *next;
};
Node *front, *current;

public:
BigNumber();
~BigNumber();
void ReadFromString (string decstring );
void PrintBigNumber ();
void AddBigNumbers(BigNumber B1,BigNumber B2);
};

template <class T>
BigNumber<T>::BigNumber(){
front = NULL;
current = NULL;
}

template <class T>
BigNumber<T>::~BigNumber(){
}


BigNumber B1,B2,RES;

}
BigNumber is a template class; you need to specify what you want the type "T" to stand for when you make objects of that type.
http://www.cplusplus.com/doc/tutorial/templates/#class_templates

I am somewhat confused on the purpose of the AddBigNumbers() method though; it takes two parameters, presumably the two numbers to add, but that leaves me wondering what the object calling it is meant to be used for.
Topic archived. No new replies allowed.