求助结构的嵌套
#include<stdio.h>struct point
{
int x;
int y;
};
struct rect
{
struct point pt1;
struct point pt2;
};
main()
{
struct point pt1 = {10, 20};
struct point pt2 = {20, 30};
struct rect screen;
/*如果打印 scree.pt1.x 会出现不正确的值(也就是说用着种方式得不到想要的结果)。哪里出错了? 或者说结构的嵌套应该怎么用。*/
}