ok so im trying to implement a stack using vector and i have to access the last element of the vector el, i dont know if its right and also how would i implement the pop function of the stack using vector
el_t stack::topElem()
{
el_t n;
if(isEmpty())
cout <<"stack is empty";
else
{
n = el.back();
}
return n;