Could someone please take a look at the code below and let me know why i get the following error ?
error C2660: 'Display' : function does not take 1 parameters
Error executing cl.exe.
template <class T>
class Queue
{
public:
Queue() ;
~Queue() ;
Display(int val) { fprintf(stdout,"%d",val); };
};
template <class T>
Queue<T>::Queue() {}
template <class T>
Queue<T>::~Queue() {}
Queue<int*> Help;
Help test;
int val = 3;
test.Display(val);
error C2660: 'Display' : function does not take 1 parameters
Error executing cl.exe.
template <class T>
class Queue
{
public:
Queue() ;
~Queue() ;
Display(int val) { fprintf(stdout,"%d",val); };
};
template <class T>
Queue<T>::Queue() {}
template <class T>
Queue<T>::~Queue() {}
Queue<int*> Help;
Help test;
int val = 3;
test.Display(val);