结构定义示例 定义平面坐标结构 定义一个图像 struct point struct image double x dth, he i ght double y; int format pixe Is; 或者 struct point 定义一个产品 struct product double x, y int id it type char name [100] nt price定义平面坐标结构: struct point { double x; double y; }; 或者 struct point { double x, y; }; 定义一个图像 struct image { int width, height; int format; char * pixels; }; 定义一个产品 struct prooduct { int id; int type; char name[100]; int price; };