无构造函数

类型初始化 / 结构体

#include <iostream>
using namespace std;

struct Size {
    int width, height;
};

struct Point {
    int top, left;
};

struct Rectangle {
    Size size;
    Point point;
};

Rectangle rect = {{10, 10}, {5, 5}};

cout << rect.size.height;