Nested structures

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 = {{3, 4}, {10, 12}};

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