#include<iostream>
#include<string>
const int Arrsize = 30;
using namespace std;
int main() {
struct pizza {
//char name[Arrsize];
string name;
double diameter;
double weight;
};
pizza * new_dish = new pizza;
cout << "Pizza Composing:\n-------------------\n";
cout << "Diameter: ";
cin >> new_dish->diameter;
cout << "Name: ";
//cin.get(new_dish->name, Arrsize);
cin>>new_dish->name;
cout << "Weight: ";
cin >> new_dish->weight;
cout << "-------------------\n";
cout << new_dish->name << endl << new_dish->diameter << "cm " << new_dish->weight << "g."<<endl<<endl;
delete new_dish;
system("pause");
return 0;
}
I2luY2x1ZGU8aW9zdHJlYW0+CiNpbmNsdWRlPHN0cmluZz4KCmNvbnN0IGludCBBcnJzaXplID0gMzA7CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CgppbnQgbWFpbigpIHsKCXN0cnVjdCBwaXp6YSB7CgkvL2NoYXIgbmFtZVtBcnJzaXplXTsKCXN0cmluZyBuYW1lOwoJZG91YmxlIGRpYW1ldGVyOwoJZG91YmxlIHdlaWdodDsKCX07CgkKCQoJcGl6emEgKiBuZXdfZGlzaCA9IG5ldyBwaXp6YTsKCQoJY291dCA8PCAiUGl6emEgQ29tcG9zaW5nOlxuLS0tLS0tLS0tLS0tLS0tLS0tLVxuIjsKCWNvdXQgPDwgIkRpYW1ldGVyOiAiOwoJY2luID4+IG5ld19kaXNoLT5kaWFtZXRlcjsKCWNvdXQgPDwgIk5hbWU6ICI7CgkvL2Npbi5nZXQobmV3X2Rpc2gtPm5hbWUsIEFycnNpemUpOwoJY2luPj5uZXdfZGlzaC0+bmFtZTsKCWNvdXQgPDwgIldlaWdodDogIjsKCWNpbiA+PiBuZXdfZGlzaC0+d2VpZ2h0OwoJY291dCA8PCAiLS0tLS0tLS0tLS0tLS0tLS0tLVxuIjsKCQoJY291dCA8PCBuZXdfZGlzaC0+bmFtZSA8PCBlbmRsIDw8IG5ld19kaXNoLT5kaWFtZXRlciA8PCAiY20gIiA8PCBuZXdfZGlzaC0+d2VpZ2h0IDw8ICJnLiI8PGVuZGw8PGVuZGw7CglkZWxldGUgbmV3X2Rpc2g7CgkKCXN5c3RlbSgicGF1c2UiKTsKCXJldHVybiAwOwoKCn0=