Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List cerinta1List(int nrV){
- List l;
- int i,j, nrVag, tipVag, init;
- i = 0;
- init = 1;
- while(i<nrV){
- scanf("%d %d", &nrVag, &tipVag);
- if(init == 1){
- l = initList(tipVag);
- init = 0;
- }
- for(j=1;j<nrVag;j++){
- l = addLast(l, tipVag);
- }
- i += nrVag;
- }
- return l;
- }
Advertisement
Add Comment
Please, Sign In to add comment