#include <iostream>
using namespace std;

struct List
{
	int Data;
	List *Next;
};

void ShowList(List *current)
{
	while(current!=NULL)
	{	
		cout<<current->Data<<"  ";
		if(current->Next)
			cout<<current->Next->Data<<endl;
		else
			cout<<"NULL"<<endl;
			
		current=current->Next;
	}
}

List* NewList(List *head)
{
	if(head==NULL)
	{
		List *NewNode = new List();
		
		NewNode->Data = 100;
		NewNode->Next = NULL;
		
		head = NewNode;
		
		ShowList(head);
		return NewNode;
	}	
}

int main() {
	List *OneNode=NULL;
    OneNode=NewList(OneNode);
    
    cout<<"after: "<<endl;
    ShowList(OneNode);
    
    cout<<endl<<"end."<<endl;
	return 0;
}