//====================== start of sample.cpp - Ответ на вопрос по любому предмету №1251422
Новинка
-37%
Вопрос
//====================== start of sample.cpp ========================== #include <stdio.h> #include <stdlib.h> #include <vector> class ServiceOrganization; class BuildingElement { static char* m_city; std::vector<int> m_flats; unsigned int m_square; ServiceOrganization& m_organization; FILE *m_document; BuildingElement* m_pNext; public: BuildingElement(); BuildingElement(BuildingElement&& src) : m_square(0) , m_organization(src.m_organization) , m_document(src.m_document) , m_pNext(src.m_pNext) { m_flats = src.m_flats; src.m_flats.clear(); src.m_organization = ServiceOrganization(); ::fclose(src.m_document); src.m_document = NULL; ::free(src.m_pNext); src.m_pNext = NULL; } };//====================== end of sample.cpp ========================== Какие операции, выполняемые в конструкторе переноса в файле sample.cpp являются лишними?- ::free(src.m_pNext);
- src.m_organization = ServiceOrganization();
- src.m_pNext = NULL;
- src.m_document = NULL;
- ::fclose(src.m_document);
- src.m_flats.clear();
Ответ
Этот вопрос в коллекциях

Гарантия сдачи без лишних хлопот! ✅🎓 Ответы на тесты по любым дисциплинам, базы вопросов, работы и услуги для Синергии, МЭИ и других вузов – всё уже готово! 🚀 🎯📚 Гарантия качества – или возврат денег! 💰✅














