#include <iostream>
using namespace std;

struct A {
    union {
            struct {
                double xyz[3];
            };
            struct {
				double x, y, z;
            };
        };
};

int main()
{
    A a;
    a.xyz[0] = 1.5;
    a.xyz[1] = 2.12;
    a.xyz[2] = 3.14;

    cout << a.x << endl << a.y << endl << a.z << endl;
}
