#include <iostream>
#include <cstring>
using namespace std;
class Student {
char name[50];
char surname[50];
int age;
public:
Student(char name[], char surname[], int age) {
strcpy(this->name, name); // please explain this line what does it means?
strcpy(this->surname, surname);
this->age = age;
}
void Show() {
cout << "Name: " << this->name << endl;
cout << "Surname: " << this->surname << endl;
cout << "Age: " << this->age;
}
};
int main() {
Student A("Ivan", "Sidoroff", 25);
A.Show();
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8Y3N0cmluZz4KdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmNsYXNzIFN0dWRlbnQgewogICAgY2hhciBuYW1lWzUwXTsKICAgIGNoYXIgc3VybmFtZVs1MF07CiAgICBpbnQgYWdlOwpwdWJsaWM6CiAgICBTdHVkZW50KGNoYXIgbmFtZVtdLCBjaGFyIHN1cm5hbWVbXSwgaW50IGFnZSkgewogICAgICAgIHN0cmNweSh0aGlzLT5uYW1lLCBuYW1lKTsgLy8gcGxlYXNlIGV4cGxhaW4gdGhpcyBsaW5lIHdoYXQgZG9lcyBpdCBtZWFucz8KICAgICAgICBzdHJjcHkodGhpcy0+c3VybmFtZSwgc3VybmFtZSk7CiAgICAgICAgdGhpcy0+YWdlID0gYWdlOwogICAgfQogICAgdm9pZCBTaG93KCkgewogICAgICAgIGNvdXQgPDwgIk5hbWU6ICIgPDwgdGhpcy0+bmFtZSA8PCBlbmRsOwogICAgICAgIGNvdXQgPDwgIlN1cm5hbWU6ICIgPDwgdGhpcy0+c3VybmFtZSA8PCBlbmRsOwogICAgICAgIGNvdXQgPDwgIkFnZTogIiA8PCB0aGlzLT5hZ2U7CiAgICB9Cn07CgppbnQgbWFpbigpIHsKICAgIFN0dWRlbnQgQSgiSXZhbiIsICJTaWRvcm9mZiIsIDI1KTsKICAgIEEuU2hvdygpOwoKICAgIHJldHVybiAwOwp9