CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
void insert()
{
int i,j;
for(i=0;i<n;i++)
{
cin>>A[i];
for(j=0;j<n;j++)
{
cin>>B[j];
celula *temp = new celula , p=*L;
if(p.leg!=NULL) p=p->leg;
temp->a=A[i];
temp->b=B[j];
temp->leg=NULL;
p.leg=temp;
cout<<" ";
}
}
cout<<endl;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run