Pandarec13

666

Dec 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include"polinom.h"
  4. #include <map>
  5. #include <vector>
  6. using namespace std;
  7.  
  8. int main(){
  9. setlocale(LC_ALL, "");
  10. string first;
  11. string second;
  12. map<int ,vector <int> > mapp;
  13. map<int, vector <int> > mapp_2;
  14.  
  15. int min = 10000;
  16. int max = 0;//максимальная и минимальная степени первого поленома
  17.  
  18. int min_2 = 10000;
  19. int max_2 = 0;//максимальная и минимальная степени второго поленома
  20.  
  21. first = entry_1(mapp, &min, &max);
  22. second = entry_2(mapp_2, &min_2, &max_2);
  23.  
  24. system("cls");
  25. cout << "Первое выражение равно : ";
  26. cout << first << endl;
  27. cout << "Второе выражение равно : ";
  28. cout << second << endl;
  29.  
  30.  
  31.  
  32.  
  33. /*for (int i = 0; i < mapp[2].size(); i++) {
  34. cout << mapp[2].at(i) << endl;
  35. }
  36.  
  37. for (int i = 0; i < mapp_2[2].size(); i++) {
  38. cout << mapp_2[2].at(i) << endl;
  39. }
  40. */
  41. cout << " min = " << min << endl;
  42. cout << " max = " << max << endl;
  43. cout << " min_2 = " << min_2 << endl;
  44. cout << " max_2 = " << max_2 << endl;
  45.  
  46. cout << mapp[2].at(0);
  47. cout << mapp[2].at(1);
  48.  
  49.  
  50.  
  51. //sum(mapp, mapp_2, min, max,min_2,max_2);
  52.  
  53. system("pause");
  54. return 0;
  55.  
  56. }
Add Comment
Please, Sign In to add comment