Answers for "c++ access array from different class"

C++
0

cpp class access array member by different name

struct U
{
    int   v[2];
    int&  x;
    int&  y;
};

U::U()
    : x(v[0])
    , y(v[1])
{}
Posted by: Guest on February-21-2021

Code answers related to "c++ access array from different class"

Browse Popular Code Answers by Language