home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.disi.unige.it
/
2015-02-11.ftp.disi.unige.it.tar
/
ftp.disi.unige.it
/
pub
/
.person
/
CataniaB
/
teach-act
/
esempi
/
Comp-Sep
/
main.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-19
|
293b
|
23 lines
#include "stack.h"
void main(void)
{
dlist L;
stack S;
int x,y;
init(&L);
init_stack(&S);
push(4,5,&S);
push(6,7,&S);
push(7,8,&S);
top(&x,&y,&S);
printf("\n Top: (%d,%d)",x,y);
print_stack(&S);
insert_head(5,9,&L);
insert_head(8,10,&L);
delete_head(&L);
print(&L);
}