More Related Content
PDF
DOC
PDF
DOCX
DOCX
TXT
PDF
Bcsl 033 data and file structures lab s1-2 DOCX
Ejercicio de listas simples What's hot
TXT
PPTX
DOCX
(Meta 4) ejemplo calcular la mitad de un numero dev c++ DOCX
Fcfs Cpu Scheduling With Gantt Chart PDF
contoh Program C++ tentang fungsi for PDF
Bcsl 033 data and file structures lab s4-3 PDF
Linked List Implementation of Stack in C TXT
C Program : Sorting : Bubble, TXT
DOCX
DOCX
DOCX
DOCX
DOCX
PPTX
PDF
TXT
DOCX
DOC
PPT
Tablas hash (Rubén Ndong Obiang) Viewers also liked
DOCX
placement resume 474(tech) PDF
PDF
Zohar placed in oslo as of february 2016 DOCX
PDF
ASITF (English)_ASITF Certificate PPTX
Parque acuático dios padre PDF
SchoolCounselingResumeUpdated (Autosaved) PDF
Calendário do concurso 2012 DOCX
PPTX
DOC
PDF
DOCX
Docente martha polo barrera PPTX
Engineers And Technicians For Germany DOCX
DOCX
DOCX
Ds program
- 1.
Stack usingan array
#include<iostream.h>
#include <conio.h>
#define ms5
Class stack
{
Int a[ms],size ,top;
Public:
Stack(int n);
{
Size =n;
Top=-1;
}
Void push();
Void push();
Void display();
};
Void stack::push()
{
Int x;
If(top<=size-1)
{
Cout<<”enter the value”;
Cin>>x;
top++;
a[top]=x;
}
else
cout<<”stackis overflow”;
}
Void stack::pop()
{
int y;
if(top==-1)
- 2.