Обновить cv3/program.c

This commit is contained in:
Yevhen Kozirovskyi 2024-10-17 16:36:28 +00:00
parent 4debe4d069
commit e713389776

View File

@ -2,13 +2,10 @@
#include <stdlib.h>
#include <string.h>
#define MAX_RAZMER 100
#define MAX_RAZMER 10
typedef struct {
double chisla[MAX_RAZMER];
int vershina;
} StEk;
@ -19,8 +16,8 @@ void inicStEk(StEk* stek) {
int isEmpty(StEk* stek) {
return stek->vershina == 0;
}
int isFull(StEk* stek) {
int isFull(StEk* stek) {
return stek->vershina == MAX_RAZMER;
}
@ -33,7 +30,6 @@ void push(StEk* stek, double chislo) {
stek->vershina++;
}
double pop(StEk* stek) {
if (isEmpty(stek)) {
printf("no input\n");
@ -43,7 +39,6 @@ double pop(StEk* stek) {
}
int main() {
StEk stek;
inicStEk(&stek);
char bufer[256];