This is part of a code.
I am trying to make a stack from List STL.
This is a practice although I know that there is stack STL :))
template<typename T>
&T stackL<T>::top(){
}
the compiler shows that there is an error at the underlined word and asks for ';' .
How to solve this problem?
Thank you very much :))
Is stackL spelled correctly? Also, &T
should be T&
.
Yes... correctly
I names my class as stackL
oops. :P careless mistacks
thank you very much :)) now the problem is solved