Advertisement
Guest User

Untitled

a guest
May 20th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <cstdlib>
  4. #include <ctime>
  5.  
  6. using namespace std;
  7.  
  8. int main() {
  9. vector<double> myVector;
  10. double m;
  11.  
  12. for (int count=0; count < 10; ++count)
  13. myVector.push_back(count);
  14.  
  15. for (int count=0; count < 10; count++) {
  16. m = myVector[count];
  17. myVector[count] = myVector[9-count];
  18. myVector[9-count] = m;
  19. }
  20.  
  21. return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement