Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef DECLARATION_H //prevents same decleration being used multiple times
- #define DECLARATION_H
- /* Here I am creating structure required for a node
- It contains a pointer to for a right and left child
- And the information that it will contain
- */
- typedef struct node { //typedef was used to reduce repititions when referring to nodes later
- struct node* right; //creating a right pointer
- struct node* left; //creating a left pointer
- char info[]; //creating info variable
- } node; //delcare pointer called node
- /* Here I am declaring all of the different
- functions that I will be using within them
- the program */
- node* addnode(node* rootnode, char info[]);
- node* makenode(char info[]);
- void presentTree(node* nodeInfo);
- int convert(node* nodeInfo);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement