struct point {
int x;
int y;
};
//使用
struct point p1 ,p2;
struct point{
int x;
int y;
}p1,p2;
2.struct后面不带结构名的
struct {
int x;
int yy
}p1,p2
</pre><h1>3.结构体指针</h1><div><pre name="code" class="cpp">
struct date{
int year;
int month;
int day;
} myday;
struct date * p=&myday;
p->month=12;