4结构与函数 关于结构至少有3种传递方式分别传结构中的元素结构整体传送传指针3种方式各有其优缺点 1struct point makepoint(int x, int y){ struct point temp; temp.x = x; temp.y = y; return temp;} 2struct point addpoint(struct point p1, struct point p2