refresh
This commit is contained in:
parent
3ee0656e53
commit
4aebd8a377
@ -28,7 +28,7 @@ struct stack* create_stack (int capacity) {
|
|||||||
|
|
||||||
void push_stack(struct stack* s, float value) {
|
void push_stack(struct stack* s, float value) {
|
||||||
if (s->size >= s->capacity) {
|
if (s->size >= s->capacity) {
|
||||||
printf("Stack perepolnen!\n");
|
printf("full stack\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
s->values[s->size] = value;
|
s->values[s->size] = value;
|
||||||
|
Loading…
Reference in New Issue
Block a user