diff --git a/Stack Using Array.cpp b/Stack Using Array.cpp deleted file mode 100644 index 944258ed4..000000000 --- a/Stack Using Array.cpp +++ /dev/null @@ -1,77 +0,0 @@ -#include -using namespace std; - -int stack[10]; -int top=0; - -void push(int x) -{ - if(top==10) - { - cout<<"\nOverflow"; - } - else - { - stack[top++]=x; - } -} - -void pop() -{ - if (top==0) - { - cout<<"\nUnderflow"; - } - else - { - cout<<"\n"<>ch; - if (ch==1) - { - cout<<"\nInsert : "; - cin>>x; - push(x); - } - else if (ch==2) - { - pop(); - } - else if (ch==3) - { - show(); - } - else if(ch==4) - { - topmost(); - } - } - while(ch!=0); - - return 0; -} -