How do you access members of a struct that is defined within another struct?
Suppose we have a struct defined as:
struct FR {
size_t n;
struct FR_1{
unsigned char r;
unsigned char g;
unsigned char b;
};
};
Under visual studio 2015,writing:
struct FR x;
x.FR_1.
does not display options for FR_1 members.On the other hand,writing:
struct FR_1 y;
Says: Error,incomplete type is not allowed.
How do you deal with this kind of struct?