Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. void formadd_los() {
  2.  
  3. int dana;
  4.  
  5. cout<<"Podaj liczbe elementow: ";
  6. cin>>liczba;
  7. int i=0;
  8. int *tab = new int[liczba];
  9. licznik=licznik+(liczba*2);
  10. for(int a=1; a<licznik; a=a+2)
  11. {
  12. tab[i]=a;
  13. i++;
  14. }
  15.  
  16. random_shuffle(&tab[0],&tab[liczba]);
  17.  
  18. for(int i=0;i<liczba;i++){
  19. dana = tab[i];
  20. add_sort(dana);
  21. }
  22.  
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement