#include <iostream>
#include <string>
using std::cout; using std::endl;
using std::string;
class Cat
{
public:
int name;
Cat() : name(0) { }
int getName() { return name; }
};
int main()
{
Cat* pointer = new Cat();
pointer->name = 42;
cout << "getName: " << pointer->getName() << endl;
cout << "name: " << pointer->name << endl;
delete pointer;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgp1c2luZyBzdGQ6OmNvdXQ7IHVzaW5nIHN0ZDo6ZW5kbDsKdXNpbmcgc3RkOjpzdHJpbmc7CgpjbGFzcyBDYXQKewogIHB1YmxpYzoKICAgIGludCBuYW1lOwogICAgQ2F0KCkgOiBuYW1lKDApIHsgfQogICAgaW50IGdldE5hbWUoKSB7IHJldHVybiBuYW1lOyB9Cn07CgppbnQgbWFpbigpCnsKICAgIENhdCogcG9pbnRlciA9IG5ldyBDYXQoKTsKICAgIHBvaW50ZXItPm5hbWUgPSA0MjsKICAgIGNvdXQgPDwgImdldE5hbWU6ICIgPDwgcG9pbnRlci0+Z2V0TmFtZSgpIDw8IGVuZGw7CiAgICBjb3V0IDw8ICJuYW1lOiAiIDw8IHBvaW50ZXItPm5hbWUgPDwgZW5kbDsKICAgIGRlbGV0ZSBwb2ludGVyOwp9