//Apolo, Catherine D.
//Caballero, Alvin B.
//Dasalla, Justin Roi G.
//Cansicio, Riza Mae c.
//San Pedro, Rachelle Jayra
#include<iostream>
#include<conio.h>
#include<iomanip>
using namespace std;
struct listnode
{
int num;
listnode *next,*prev;
}*headptr, *thisptr, *tailptr;
void push();
void pop();
void viewnode();
main()
{
int choice,temp;
cout<<setiosflags(ios::fixed|ios::showpoint|ios::right)<<setprecision(2);
cout<<endl;
do
{
cout<<endl<<endl;
cout<<setw(35)<<"* M E N U *"<<endl<<endl;
cout<<setw(37)<<"---------------"<<endl;
cout<<setw(24)<<"| "<<"[1] ADD "<<" |"<<endl;
cout<<setw(24)<<"| "<<"[2] DELETE "<<"|"<<endl;
cout<<setw(24)<<"| "<<"[3] VIEW "<<" |"<<endl;
cout<<setw(24)<<"| "<<"[4] EXIT "<<" |"<<endl;
cout<<setw(37)<<"---------------"<<endl<<endl;
cout<<setw(40)<<"Enter your choice: ";
cin>>choice;
system("cls");
switch(choice)
{
case 1:
push();
break;
case 2:
pop();
break;
case 3:
viewnode();
break;
case 4:
cout<<"\nPress any key to exit...";
getch();
break;
default: cout<<"\nINVALID INPUT";
}
}while(choice!=4);
return 0;
}