struct zuobiao{
int x=0;//X坐标
int y=0;//Y坐标
int z=0;//Y坐标
};
#include<stdio.h>
void printzuobiao(struct zuobiao a){
printf(“%d”,a.x);
printf(“\n”);
printf(“%d\n”,a.y);
printf(“%d\n”,a.z);
}
int main(int argc,char **argv){
struct zuobiao point;
point.x=10;
point.y=10;
point.z=10;
printzuobiao(point);
return 0;
}
//参考代码