Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include "sorterhelper.h"
- using namespace std;
- int main()
- {
- cout << endl;
- //seeds random numbers
- srand(time(NULL));
- //my testing data- size from 1-20
- vector<int>myVector;
- int a = (rand() % 10) + 1; //1 to 20
- cout << "UNSORTED DATA: " << endl;
- //pushes back a ran num from 1-20
- for (int i =0; i < a; i++)
- {
- int b = (rand() % 1000) + 1; //1 to 20
- myVector.push_back(b);
- cout << "index " << i << ": " << myVector[i] << endl;
- }
- cout << endl;
- SorterHelper * mySorting = new SorterHelper();
- (*mySorting).MysteryClassA(myVector);
- printMyVector(myVector);
- //(*mySorting).MysteryClassB(myVector);
- //printMyVector(myVector);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement