according to my instructions #include "template.h" is not supposed to be there.
I'm not sure how you plan on defining the TemplateQ class without implementing the file with the prototype constructor, destructor and methods.
It's like trying to define something out of nothing.
The script you're working in has to have some knowledge of what it is defining.
The statement--
template <class someType>
TemplateQ<someType>::TemplateQ()
{
rearPtr = NULL;
frontPtr = NULL;
}
--is equivalent to saying I want to define the default constructor of the class TemplateQ<someType>, but how do you plan on doing that without giving the compiler a hint on the types declared in the class or what the class consists of?
You only include the headers new and cstddef, but not templateq.h
So let me ask you this. If you weren't instructed to add stdio or iostream or some other header that allows you to print to the Console but code is present that clearly shows that you should be implementing a header to allow you to do so, would you be reluctant to add that header?