Advertisement
omone

Untitled

May 8th, 2018
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. map<string, stozki> POJEMNIK_STOZKOW;
  2. cout << "0 - stozek normalny, 1 - stozek sciety" << endl;
  3. int n;
  4. cin >> n;
  5. if (n == 0)
  6. {
  7. stozki nowy("st1", 1, 5);
  8. POJEMNIK_STOZKOW["st1"] = nowy;
  9. }
  10. if (n == 1)
  11. {
  12. stozki_siciete nowy1(2, "st5", 3, 5);
  13. stozki_siciete nowy2(3, "stozek", 7, 3);
  14. POJEMNIK_STOZKOW["st5"] = nowy1;
  15. POJEMNIK_STOZKOW["stozek"] = nowy2;
  16. }
  17. for (auto e : POJEMNIK_STOZKOW)
  18. {
  19. cout << e.first << " ";
  20. cout << "r" << e.second.promien << " ";
  21. e.second.promien *= 1.5;
  22. cout << e.second.promien << " ";
  23. cout << endl;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement