Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef MY_LIB_H
- #define MY_LIB_H
- #define BOARD_SIZE 9
- typedef struct Sudoku ///
- { /// Defined data type StackData to store Sudoku boards
- short int data[BOARD_SIZE][BOARD_SIZE]; ///
- } Sudoku; ///
- ///
- typedef Sudoku StackData; ///
- struct Node{
- struct Node *next;
- StackData value; ///changed int to StackData
- }; typedef struct Node Node;
- Node * GNN(StackData number); ///changed int to StackData
- void push (StackData number, Node **head); ///changed int to StackData
- void pop (Node ** head);
- void print_stack(Node *head);
- void destroy_stack(Node **head);
- double average(Node *head, double size);
- //if array is empty, returns 0
- //if array does not have positive numbers returns 0
- //otherwise returns average of positive numbers
- int read_num();
- void create_stack (Node **head);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement