usaa18cv4/calculator.h

25 lines
384 B
C
Raw Permalink Normal View History

2018-11-19 23:01:20 +00:00
#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