急救!!!!!!C语言大程!!!!
结构体出了问题,请牛人帮忙解决!!!是调用出问题了么??
#include <dos.h>
#include <stdio.h>
#include <graphics.h>
#include <math.h>
#include<conio.h>
#include <alloc.h>
#include <stdlib.h>
/*结构体定义/
typedef struct Point_struct{
int mx;
int my;
} Point;
typedef struct tagPlane_struct{
Point initPoint; /*玩家起始位置坐标*/
Point pCoordination;
int state;
int Num;
char name[10];
} tagPlane;
typedef struct tagPlayer_struct{
tagPlane Plane1;
tagPlane Plane2;
tagPlane *Plane;
int mode;
int pNum;
int color;
} tagPlayer;
tagPlayer playerA, playerB, *player;
/*赋初值*/
playerA.plane1.initPoint.mx=2;
playerA.plane1.initPoint.my=442;
playerA.plane2.initPoint.mx=8;
playerA.plane2.initPoint.my=448;
playerB.plane1.initPoint.mx=407;
playerB.plane1.initPoint.my=127;
playerB.plane2.initPoint.mx=413;
playerB.plane2.initPoint.my=133;
int main()
{
int x, ix, y, iy;
player=&playerA;
player.player
x=(*player).(*plane).pCoordination.mx;
y=(*player).(*plane).pCoordination.my;
ix=(*player).(*plane).initPoint.mx;
iy=(*player).(*plane).initPoint.my;
printf("%d %d %d %d ", x, y, ix, iy);
}