diff --git a/Data Structures/Tree/tree.cpp b/Data Structures/Tree/tree.cpp new file mode 100755 index 0000000..169593a --- /dev/null +++ b/Data Structures/Tree/tree.cpp @@ -0,0 +1,19 @@ +#include + +using namespace std; + +struct Node{ + int data; + struct Node *next; + Node(int data){ + this->data = data; + this->next = NULL; + } +}; + +int main(){ + Node *head = new Node(10); + head->next = new Node(20); + cout<data<<"->"<next->data<