template class??

mono (37)
The instructions of the homework said that
This is a template class. The template parameter, called RT, may be instantiated as any struct or class that contains an integer member variable called k.

Im not sure what is exactly I have to do, first I thought I have only to do the

1
2
3
4

template <class RT>   //before the class, but not sure what to do
                      //to instantiated also to create a member variable k??


Zhuge (2878)
http://cplusplus.com/doc/tutorial/templates/
And read the section on class templates, it should be able help you out.
mono (37)
thanks
Registered users can post here. Sign in or register to post.