Advertisement
Holek

Untitled

May 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <math.h>
  4. using namespace std;
  5.  
  6. void do_szescianu(vector<double> & t){
  7. int i;
  8. int rozmiar = t.capacity();
  9. for(i=0;i<rozmiar;i++){
  10. cout << pow(t[i],3)<<endl;
  11. }
  12. }
  13. int main()
  14. {
  15. vector<double> a;
  16. a.reserve(5);
  17. a[0] = 9;
  18. a[1] = 10;
  19. a[2] = 10;
  20. a[3] = 10;
  21. a[4] = 10;
  22. do_szescianu(a);
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement