Mary_99

task1a.h

Oct 11th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #pragma once
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4. #include <stdbool.h>
  5.  
  6.  
  7. #define SIZE 5
  8.  
  9. typedef struct{
  10.  
  11.     int* data;
  12.     int top;
  13.     int size;
  14. } Stack;
  15.  
  16.  
  17. Stack* init(int size);
  18. void destroy(Stack* s);
  19. void push(Stack *s, int element);
  20. int pop(Stack* s);
  21. bool isEmpty(Stack* s);
Add Comment
Please, Sign In to add comment