mihainan

Untitled

May 1st, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. List cerinta1List(int nrV){
  2.     List l;
  3.     int i,j, nrVag, tipVag, init;
  4.     i = 0;
  5.     init = 1;
  6.     while(i<nrV){
  7.         scanf("%d %d", &nrVag, &tipVag);
  8.         if(init == 1){
  9.             l = initList(tipVag);
  10.             init = 0;
  11.         }
  12.         for(j=1;j<nrVag;j++){
  13.             l = addLast(l, tipVag);
  14.         }
  15.         i += nrVag;
  16.     }
  17.     return l;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment