Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include"polinom.h"
- #include <map>
- #include <vector>
- using namespace std;
- int main(){
- setlocale(LC_ALL, "");
- string first;
- string second;
- map<int ,vector <int> > mapp;
- map<int, vector <int> > mapp_2;
- int min = 10000;
- int max = 0;//максимальная и минимальная степени первого поленома
- int min_2 = 10000;
- int max_2 = 0;//максимальная и минимальная степени второго поленома
- first = entry_1(mapp, &min, &max);
- second = entry_2(mapp_2, &min_2, &max_2);
- system("cls");
- cout << "Первое выражение равно : ";
- cout << first << endl;
- cout << "Второе выражение равно : ";
- cout << second << endl;
- /*for (int i = 0; i < mapp[2].size(); i++) {
- cout << mapp[2].at(i) << endl;
- }
- for (int i = 0; i < mapp_2[2].size(); i++) {
- cout << mapp_2[2].at(i) << endl;
- }
- */
- cout << " min = " << min << endl;
- cout << " max = " << max << endl;
- cout << " min_2 = " << min_2 << endl;
- cout << " max_2 = " << max_2 << endl;
- cout << mapp[2].at(0);
- cout << mapp[2].at(1);
- //sum(mapp, mapp_2, min, max,min_2,max_2);
- system("pause");
- return 0;
- }
Add Comment
Please, Sign In to add comment