25 lines
384 B
C
25 lines
384 B
C
|
#ifndef CALCULATOR_H
|
||
|
#define CALCULATOR_H
|
||
|
|
||
|
#define STACK_SIZE 1024
|
||
|
|
||
|
struct stack {
|
||
|
float* array;
|
||
|
int size;
|
||
|
};
|
||
|
|
||
|
struct stack* create_stack();
|
||
|
|
||
|
void delete_stack(struct stack* stack);
|
||
|
|
||
|
void push_stack_value(struct stack* stack,float value);
|
||
|
|
||
|
float pop_stack_value(struct stack* stack);
|
||
|
|
||
|
void print_stack(struct stack* stack);
|
||
|
|
||
|
void polish_calculator();
|
||
|
|
||
|
#endif // CALCULATOR_H
|
||
|
|