struct Car
{
int price;
int color;
int code;
int type;
void operator=(Car& o)
{
price = o.price;
color = o.color;
code = o.code;
type = o.type;
}
bool operator==(Car& o) const
{
return (price == o.price &&
color == o.color &&
code == o.code &&
type == o.type);
}
// << 略略略
};