Define a structure in C++:
Write a program a structure in c++ program.
void main()
{
                struct player
                {
                char name[20];
                int age,height;
                }    ;
       struct player p[3];
 
                int i,j,k;
                clrscr();
                for (i=0;i<=2;i++)
                    {
                      printf("Enter the name of player %d ,age %d,height %d\n",i+1,i+1,i+1);
                      scanf("%s %d %d",p[i].name,&p[i].age,&p[i].height);
                    }
                                for (i=0;i<=2;i++)
                    {
                       printf("%s %d %d\n",p[i].name,p[i].age,p[i].height);
                    }
       getch();
}