#include <iostream>
struct MoneyData
{
int twenty, ten, five, one, change;
int quarter, dime, nickel, penny;
};
struct Money : MoneyData
{
void foo();
Money() : MoneyData() {}
};
int main()
{
char storage[120] = "This is filler";
Money* a = new (storage) Money; /* default initialization, not value initialization */
std::cout << a->twenty << ", " << a->ten << ", " << a->penny << "\n";
return 0;
}
ICAgICNpbmNsdWRlIDxpb3N0cmVhbT4KICAgICAKICAgIHN0cnVjdCBNb25leURhdGEKICAgIHsKICAgIGludCB0d2VudHksIHRlbiwgZml2ZSwgb25lLCBjaGFuZ2U7CiAgICBpbnQgcXVhcnRlciwgZGltZSwgbmlja2VsLCBwZW5ueTsKICAgIH07CiAgICAgCiAgICBzdHJ1Y3QgTW9uZXkgOiBNb25leURhdGEKICAgIHsKICAgIHZvaWQgZm9vKCk7CiAgICBNb25leSgpIDogTW9uZXlEYXRhKCkge30KICAgIH07CiAgICAgCiAgICBpbnQgbWFpbigpCiAgICB7CiAgICBjaGFyIHN0b3JhZ2VbMTIwXSA9ICJUaGlzIGlzIGZpbGxlciI7CiAgICBNb25leSogYSA9IG5ldyAoc3RvcmFnZSkgTW9uZXk7IC8qIGRlZmF1bHQgaW5pdGlhbGl6YXRpb24sIG5vdCB2YWx1ZSBpbml0aWFsaXphdGlvbiAqLwogICAgc3RkOjpjb3V0IDw8IGEtPnR3ZW50eSA8PCAiLCAiIDw8IGEtPnRlbiA8PCAiLCAiIDw8IGEtPnBlbm55IDw8ICJcbiI7CiAgICByZXR1cm4gMDsKICAgIH0=