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
/
stack.c
< prev
next >
Wrap
C/C++ Source or Header
|
1997-04-19
|
436b
|
35 lines
/* Tipo di dato stack: */
#include<stdio.h>
#include "stack.h" /* include a sua volta "list.h" */
bool is_empty_stack(stack *s)
{
is_empty(s);
}
void init_stack(stack *s)
{
init(s);
}
void top(element *x,element *y,stack *s)
{
first(x,y,s);
}
void push(element x,element y,stack *s)
{
insert_head(x,y,s);
}
void pop(stack *s)
{
delete_head(s);
}
void print_stack(stack *s)
{
print(s);
}