ПК
Size: a a a
ПК
VS
K
IG
IG
IG
ПК
VS
ID
K
ПК
VS
ID
std::string::size()
ID
VS
std::string::size()
ID
VS
AS
void SetAll(string _name,
string _information,
int _dateofCreation,
int _numberofPages,
int _numberofCreators,
string _Autors)
{
this->name = _name;
this->information = _information;
this->dateofCreation = _dateofCreation;
this->numberofPages = _numberofPages;
this->numberofCreators = _numberofCreators;
this->Autors = _Autors;
}
void GetAll()
{
cout << "Имя: " << this->name << endl;
cout << "Дата создания: " << this->dateofCreation << endl;
cout << "Имя автора(oв): " << this->Autors << endl;
cout << "Количество создателей: " << this->numberofCreators << endl;
cout << "Количество страниц: " << this->numberofPages << endl;
cout << "Информация про книгу: " << this->information << endl;
}
struct description {может этого от тебя хотели?
string information;
int date_of_creation;
...
};
class holder {
description d;
public:
const description& get_description() const {return d;}
void set_description(const description& r) {d = r;}
void set_description(description&& r) {d = std::move(r);}
};
IG
B