Код: Выделить всё
#include
class building {
public:
virtual void Geolocate();
};
class floor : public building {
public:
virtual void Geolocate() override;
};
class flat : public floor {
public:
virtual void Geolocate() override;
};
int main() {
building* block = new building;
floor* level = new floor;
flat* number = new flat;
delete block;
delete level;
delete number;
system("pause");
}
void building::Geolocate() {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79798810/visual-studio-throwing-an-error-when-i-name-my-class-floor[/url]
Мобильная версия