#include #include main() { /* x座標,、y座標で構成される構造体の定義 */ struct point{ int x; /* x座標 */ int y; /* y座標 */ }; struct point pt1,pt2; printf("pt1のx座標="); scanf("%d",&pt1.x); printf("pt1のy座標="); scanf("%d",&pt1.y); printf("pt2のx座標="); scanf("%d",&pt2.x); printf("pt2のy座標="); scanf("%d",&pt2.y); printf("\n"); printf("pt1=(%d,%d)\n",pt1.x,pt1.y); printf("pt2=(%d,%d)\n",pt2.x,pt2.y); exit(0); }