12345
struct Node{ int data; Node *next; }; Node *head;
123456
head = new Node; head -> data = 1; head -> next = new Node; head-> next -> data = 2; head -> next -> next = new Node; head -> next -> next -> data = 3;