#include <iostream>
class bar {
public:
bar() {
std::cout << "Default initialized!" << std::endl;
}
bool a = true;
};
struct foo {
bool a = true;
bool b;
bar c;
std::string d;
};
int main()
{
foo bar = {};
bar.d.append("...");
std::cout << bar.a << " "<< bar.b << bar.d << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKY2xhc3MgYmFyIHsKCXB1YmxpYzoKCWJhcigpIHsKCQlzdGQ6OmNvdXQgPDwgIkRlZmF1bHQgaW5pdGlhbGl6ZWQhIiA8PCBzdGQ6OmVuZGw7Cgl9Cglib29sIGEgPSB0cnVlOwp9OwoKc3RydWN0IGZvbyB7CiAgICBib29sIGEgPSB0cnVlOwogICAgYm9vbCBiOwogICAgYmFyIGM7CiAgICBzdGQ6OnN0cmluZyBkOwogfTsKIAogaW50IG1haW4oKQogewogCWZvbyBiYXIgPSB7fTsKICAgICBiYXIuZC5hcHBlbmQoIi4uLiIpOwogICAgIHN0ZDo6Y291dCA8PCBiYXIuYSA8PCAiICI8PCBiYXIuYiA8PCBiYXIuZCA8PCBzdGQ6OmVuZGw7CiAgICAgCiAgICAgcmV0dXJuIDA7CiB9