Код: Выделить всё
#include
#include
struct point_t {
float x, y;
void print() const {
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79313077/interpreting-part-of-an-array-as-an-object-by-casting-a-pointer-to-an-array-elem[/url]