#define ARRAY_MAX 10
typedef struct
{
char name[MAX] ;
int xue_hao ;
} MY_DATATYPE ;
#include
void main( )
{
int i ;
MY_DATATYPE person_info[ARRAY_MAX] ;
for( i = 0 ; i < ARRAY_MAX ; i ++ )
{
gets(person_info[i].name) ;
scanf("%d", &info[i].xue_hao) ;
}
for( i = 0 ; i < ARRAY_MAX ; i ++ )
printf("%s\t%d\n", person_info[i].name, person_info[i].xue_hao) ;
}