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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. krishnakumara

    totally stumped, cannot instantiate template class

    When you say: Jstack < int > myStack(); it actually is a prototype declaration of a function called &quot;mystack&quot; which returns a &quot;Jstack<int>&quot; and takes no arguments. It is not a variable declaration at all...
  2. krishnakumara

    totally stumped, cannot instantiate template class

    I notice couple of problems here: 1. Your destructor is defined like this: ~Jstack() {void}; change it to ~Jstack() {}; 2. Your instantiation of the template looks wrong. Jstack < int > myStack(); Try changing it to: Jstack < int > myStack; Hope this helps.
  3. krishnakumara

    Can't access protected data member of Tape type

    You cannot access a protected member of a class except from a derived class. Since you are trying to access it from outside the Video class which is not derived from the Video class, what you need here is an setter function that would set the info member of the video class. Something like...

Part and Inventory Search

Back
Top