34 lines
487 B
C
34 lines
487 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <ctype.h>
|
|
#define STACK_SIZE 10
|
|
|
|
|
|
struct stack {
|
|
float values[STACK_SIZE];
|
|
int size;
|
|
};
|
|
|
|
void push_stack(struct stack* stack, float value) {
|
|
if (stack->size >= STACK_SIZE) {
|
|
printf("Error!\n");
|
|
exit(1);
|
|
}
|
|
stack->values[stack->size] = value;
|
|
stack->size++;
|
|
|
|
}
|
|
|
|
float pop_stack(struct stack* stack) {
|
|
|
|
}
|
|
|
|
int count_stack(struct stack* stuck) {
|
|
|
|
}
|
|
|
|
|
|
int main() {
|
|
return 0;
|
|
} |