27 lines
476 B
C
27 lines
476 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <assert.h>
|
|
|
|
#define STACK_SIZE 10
|
|
#define LINE_SIZE 100
|
|
|
|
struct stack {
|
|
float values[STACK_SIZE];
|
|
int size;
|
|
};
|
|
|
|
// Vypis zasobnika
|
|
void print_stack(struct stack* stack);
|
|
// Vyber zo zasobnika
|
|
float pop_stack(struct stack* stack);
|
|
// Pridanie do zasobnika
|
|
void push_stack(struct stack* stack,float value);
|
|
|
|
|
|
int main(){
|
|
struct stack mystack;
|
|
memset(&mystack,0,sizeof(struct stack));
|
|
return 0;
|
|
}
|