Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <cstdlib>
- #include <ctime>
- using namespace std;
- int main() {
- vector<double> myVector;
- double m;
- for (int count=0; count < 10; ++count)
- myVector.push_back(count);
- for (int count=0; count < 10; count++) {
- m = myVector[count];
- myVector[count] = myVector[9-count];
- myVector[9-count] = m;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement