Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- map<string, stozki> POJEMNIK_STOZKOW;
- cout << "0 - stozek normalny, 1 - stozek sciety" << endl;
- int n;
- cin >> n;
- if (n == 0)
- {
- stozki nowy("st1", 1, 5);
- POJEMNIK_STOZKOW["st1"] = nowy;
- }
- if (n == 1)
- {
- stozki_siciete nowy1(2, "st5", 3, 5);
- stozki_siciete nowy2(3, "stozek", 7, 3);
- POJEMNIK_STOZKOW["st5"] = nowy1;
- POJEMNIK_STOZKOW["stozek"] = nowy2;
- }
- for (auto e : POJEMNIK_STOZKOW)
- {
- cout << e.first << " ";
- cout << "r" << e.second.promien << " ";
- e.second.promien *= 1.5;
- cout << e.second.promien << " ";
- cout << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement