Guest User

Untitled

a guest
Nov 25th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. bool ampliar(tList &l,int i){
  2. bool ok=false;
  3. tProPtr aux= new tProduct[i];
  4. if(aux!=NULL){
  5. for (int i2=0;i2<l.ctr;i2++) aux[i2]=l.products[i2];
  6. delete l.products;
  7. l.products=aux;
  8. l.capacidad=i;
  9. ok=true;
  10. }
  11. return ok;
  12. }
Add Comment
Please, Sign In to add comment