Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TEMPLATE ERRORS

Status
Not open for further replies.

mteichta

ISP
Joined
Feb 12, 2002
Messages
9
Location
NL
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,&quot;%d&quot;,val); };
};

template <class T>
Queue<T>::Queue() {}

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


Queue<int*> Help;
Help test;
int val = 3;
test.Display(val);

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top