Advertisement
Meruem

Esercizio 6 informatica

Jun 24th, 2015
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function vector_list(v,l,l1)
  2. {
  3.     var p,c1=0,q,i,r,c2=0;
  4.     if(v==null || l==null){return;}
  5.     for(p=l.testa;p!=null;p=p.succ){ c1++;}
  6.     if(v.lenght!=c1)
  7.     {
  8.      q=l1;
  9.         for(q=l1;c2!=8;q=q.succ){
  10.             l1={n:1;l:'A';succ:l1};
  11.         }
  12.     }
  13.     for(i=0,r=l.testa;i<v.lenght,r!=null;i++,r=r.succ)
  14.     {
  15.         l1={n:v[i];l:r.x;succ:l1};
  16.     }
  17.     v=null;l.testa=null;
  18.     return l1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement