Advertisement
Guest User

.h

a guest
May 23rd, 2015
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.99 KB | None | 0 0
  1. #ifndef MY_LIB_H
  2. #define MY_LIB_H
  3.  
  4. #define BOARD_SIZE 9
  5.  
  6. typedef struct Sudoku                           ///
  7. {                                               ///     Defined data type StackData to store Sudoku boards
  8.     short int data[BOARD_SIZE][BOARD_SIZE];     ///
  9. } Sudoku;                                       ///
  10.                                                 ///
  11. typedef Sudoku StackData;                       ///
  12.  
  13. struct Node{
  14.     struct Node *next;
  15.     StackData value;    ///changed int to StackData
  16. }; typedef struct Node Node;
  17.  
  18. Node * GNN(StackData number);   ///changed int to StackData
  19. void push (StackData number, Node **head); ///changed int to StackData
  20. void pop (Node ** head);
  21. void print_stack(Node *head);
  22. void destroy_stack(Node **head);
  23. double average(Node *head, double size);
  24. //if array is empty, returns 0
  25. //if array does not have positive numbers returns 0
  26. //otherwise returns average of positive numbers
  27. int read_num();
  28. void create_stack (Node **head);
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement