a
This commit is contained in:
parent
d4fbad15f2
commit
6d3953b1c0
@ -22,8 +22,8 @@ int is_full(struct stack *s){return s->size==STACK_SIZE-1;}
|
||||
|
||||
void push(struct stack *s, float value){
|
||||
if (is_full(s)){
|
||||
printf("bad input\n");
|
||||
exit(1);
|
||||
printf("full stack\n");
|
||||
exit(0);
|
||||
}
|
||||
s->values[s->size++]=value;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user