20void stack_linkedList::enqueue(
int ele) {
32int stack_linkedList::dequeue() {
36 std::cout <<
"\nStack is empty";
47void stack_linkedList::display() {
49 std::cout <<
"\nStack is empty";
54 while (temp != NULL) {
55 std::cout << temp->data <<
" ";
64 std::cout <<
"\n1. enqueue(Insertion) ";
65 std::cout <<
"\n2. dequeue(Deletion)";
66 std::cout <<
"\n3. Display";
67 std::cout <<
"\n4. Exit";
70 std::cout <<
"\nEnter your choice ";
73 std::cout <<
"Enter data ";
83 std::cout <<
"\nWrong choice ";