Hi all,
Im hoping someone might be able to assist.
If i pass a struct type to a template then i dont know the struct elements, right ?
how can i them create a sub routine to display elements of generic structs ?
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) {...
Dear All,
I am desperately seeking a solution for the issues raised in the thread: Templates, Classes and unresolved symbols
Could someone please assist ?
Dear All,
I have the following
I have created a templated class defined as
template <class T> class Queue
{
public:
Queue();
~Queue();
Display();
};
this sits in templclasses.h
and the following in templclasses.cpp
#include "stdafx.h"
#include "templclasses.h"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.