Structures (records)

#include <iostream>
using namespace std;

struct Point {
    int x, y;
};

struct Size {
    int width, height;
};

struct Rect {
    Point point;
    Size size;
};

Rect rect = {{34}, {1012}};

cout << "y is " << rect.point.y;