Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include "List.h"
- using namespace std;
- int main()
- {
- setlocale(LC_ALL, "rus");
- List list;
- List vstav;
- int value = 0;
- for (int i = 0; i < 10; ++i)
- {
- list.insertSorted(rand() % 10);
- }
- for (int i = 0; i < 10; ++i)
- {
- cin >> value;
- vstav + value;
- }
- cout << endl << list << endl;
- cout << vstav << endl;
- list.joinSorted(vstav);
- cout << list << endl << "removeMinimal()" << endl;
- list.removeMinimal();
- cout << list << endl << "removeRepeats()" << endl;
- list.removeRepeats();
- cout << list << endl << "removeLess()" << endl;
- list.removeLess();
- cout << list << endl << "reduce()" << endl;
- list.reduce();
- cout << list << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement