#include<iostream>
using namespace std;
#define ok 1
#define error -1
class List
{
public:
int len;
int data;
List * next;
List * head;
List();
~List();
List * LL_index(int i)
{
List *p;
p=head;
if(i<1 && i>len)
{
cout<<"error\n";
}
while(i && p->next)
{
p=p->next;
i--;
}
return p;
}
int LL_input();
int LL_get(int i);
int LL_insert(int i,int item);
int LL_del(int i);
void LL_display();
};
List::List ()
{
head = new List();
len = 0;
next = NULL ;
}
void List::LL_display()
{
List *p;
p = head->next ;
while(p)
{
cout<<p->data<<" ";
p = p->next ;
}
cout<<endl;
}