![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: Adelaide, South Australia
Posts: 1,260
Rep Power: 5
![]() |
It should have been pretty obvious.
Either; template<class Type>
class linkedStackType: public linkedListType<Type>
{
using linkedListType<Type>::first;
// the rest of your class declarations
};template<class Type>
void linkedStackType<Type>::pop()
{
nodeType<Type> *temp;
temp = linkedListType<Type>::first;
linkedListType<Type>::first = linkedListType<Type>::first->link;
delete temp;
} |
|
|
|
|
|
#12 |
|
Newbie
Join Date: Dec 2005
Posts: 18
Rep Power: 0
![]() |
thanks a million, its really helps me a lot
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|