#include <iostream>
#include <string>
using namespace std;
class Building {
private:
int year;
string type;
public:
Building(int y, string t) {
year = y;
type = t;
}
void get_info() {
cout << year << type << endl;
}
};
int main() {
setlocale(LC_ALL, "RU"
Building school(22, "Дом"
school.get_info();
return 0;
}
#include <string>
using namespace std;
class Building {
private:
int year;
string type;
public:
Building(int y, string t) {
year = y;
type = t;
}
void get_info() {
cout << year << type << endl;
}
};
int main() {
setlocale(LC_ALL, "RU"
Building school(22, "Дом"
school.get_info();
return 0;
}