#include #include "Lstack.h" template Link_stack :: Link_stack( ) { top = NULL; } template void Link_stack :: push(T x) { top = new node(x, top); } template T Link_stack :: pop() { assert( !isempty() ); T t = top -> data; node* oldtop = top; top = top -> next; delete oldtop; return t; } template bool Link_stack :: isempty() { return( top == NULL ); } template bool Link_stack :: isfull() { return( FALSE ); }