Professional Documents
Culture Documents
Date: _
DSC DatastTucture
using CET
ClassStack
Public
SP toP-1
else
inti
else
3
void Stack istulL( Stack
sP)
if Lse-> top-: max - 1)
eise
else
++ SP topi
SP- item Cse>taP): xi
COunt (K" \n Fle menti s us bed
Vaid main U
Stack obj i
Stack *P
int nn thi.
clrscr i
do
Cin>>chi
-
Page No
Date.
S t c hc h )
Case 1
Obj CreatelP)
break
Case2
Case3
Case S
Case 6
eeit o)
9etch( i
I enc ot main )
Page No.
Date
include <Process h2
tinclude conio h~-
E indlucle CiosBream.h>
5trucE node
i n td a t a i
Stuct hade * hextE
voi d Insert O
Kendli
Cin>>vali
if Crear-- NULL)
Page No.
Date
else
void Delete O
temp= front
ICFront NOLL)
retun
else
+em P front
ront : NULL) &2 (rear-= NOLL))
COunt LLend1
Iht_main Q
int ch i
do
Swi+ch (ch)
Case1 inSert U
breal
Case 2 Delete ()i
breal
Case3 Diselay ()
brea kj
Case Cout 22" e xit ''Lendl
breale
default Cout " Tnvalid coice Leno