Advertisement
Guest User

Untitled

a guest
Dec 5th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.78 KB | None | 0 0
  1. #ifndef DECLARATION_H //prevents same decleration being used multiple times
  2. #define DECLARATION_H
  3.  
  4. /* Here I am creating structure required for a node
  5.    It contains a pointer to for a right and left child
  6.    And the information that it will contain
  7.    */
  8.  
  9. typedef struct node { //typedef was used to reduce repititions when referring to nodes later
  10.   struct node* right; //creating a right pointer
  11.   struct node* left; //creating a left pointer
  12.   char info[]; //creating info variable
  13. } node; //delcare pointer called node
  14.  
  15. /* Here I am declaring all of the different
  16.    functions that I will be using within them
  17.    the program */
  18.  
  19. node* addnode(node* rootnode, char info[]);
  20. node* makenode(char info[]);
  21. void presentTree(node* nodeInfo);
  22. int convert(node* nodeInfo);
  23.  
  24. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement