Advertisement
Guest User

...

a guest
Sep 23rd, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdlib>
  3.  
  4. using namespace std;
  5.  
  6. void Dane(int &m, float tab[])
  7. {
  8. cout<<"Podaj ilosc elementow zbioru: ";
  9. cin>>m;
  10. cout<<"Podaj kolejno liczby: "<<endl;
  11. for(int i=0; i<m; i++)
  12. {
  13. cout<<"liczba("<<i+1<<") = ";
  14. cin>>tab[i];
  15. cout<<endl;
  16. }
  17. }
  18. void Wypisz(int m, float tab[])
  19. {
  20. for(int i=0; i<m; i++)
  21. cout<<tab[i]<<" "<<endl;
  22. }
  23. void Zamiana(float &a, float&b)
  24. {
  25. float temp;
  26. temp a;
  27. a=b;
  28. b=temp;
  29. }
  30.  
  31. void Bubble_Sort(int m, float tab[])
  32. {
  33. for(int j=0; j<m; j++)
  34. {
  35. for(int i = 0; i<m-1; ++)
  36. }
  37. }
  38. int main()
  39. {
  40. cout << "Hello world!" << endl;
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement