Сделал задание Б , проверьте правильно ли ? Код [/CENTER] #include <iostream> #include <cstdlib> #include<cstdio> using namespace std; struct Distance { int meters; }; struct Room { Distance length; Distance width; }; int main() { setlocale(LC_ALL, "Russian"); Room kitchen, hall; kitchen.length.meters = 20; kitchen.width.meters = 40; hall.length.meters = 40; hall.width.meters = 80; cout << "Длина кухни равна: " << kitchen.length.meters << " ширина равна " << kitchen.width.meters; cout << "Длина зала равна: " << hall.length.meters << " ширина равна " << hall.width.meters; return 0; } [CENTER] Код [/CENTER] #include <iostream> #include <cstdlib> #include<cstdio> using namespace std; struct Distance { int meters; }; struct Room { Distance length; Distance width; }; int main() { setlocale(LC_ALL, "Russian"); Room kitchen, hall; kitchen.length.meters = 20; kitchen.width.meters = 40; hall.length.meters = 40; hall.width.meters = 80; cout << "Длина кухни равна: " << kitchen.length.meters << " ширина равна " << kitchen.width.meters; cout << "Длина зала равна: " << hall.length.meters << " ширина равна " << hall.width.meters; return 0; } [CENTER] Извиняюсь за то что весь код по центру получился ((