求助高人看看,结构体数组输出问题
#include "stdio.h"
#include <math.h>
#include "conio.h"
#include<graphics.h>
typedef struct
{
float x;
float y;
}Vertex;
typedef Vertex Edge[2];
typedef Vertex VertexArray[5];
void main()
{
VertexArray InVertexArray;
InVertexArray[0].x=55;
InVertexArray[0].y=155;
InVertexArray[1].x=150;
InVertexArray[1].y=150;
InVertexArray[2].x=50;
InVertexArray[2].y=180;
InVertexArray[3].x=50;
InVertexArray[3].y=150;
printf("a=%d",InVertexArray[1].x);
getch();
}
为何输出是零