Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <math.h>
- using namespace std;
- void do_szescianu(vector<double> & t){
- int i;
- int rozmiar = t.capacity();
- for(i=0;i<rozmiar;i++){
- cout << pow(t[i],3)<<endl;
- }
- }
- int main()
- {
- vector<double> a;
- a.reserve(5);
- a[0] = 9;
- a[1] = 10;
- a[2] = 10;
- a[3] = 10;
- a[4] = 10;
- do_szescianu(a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement