下面程序的功能是从终端上输入5个人的年龄、性别和姓名,然后输出。 #include "stdio.h" struct man { char name[20]; unsigned age; char sex[7]; }; main ( ) { struct man person[5]; data_in(person,5); data_out(person,5); } data_in(struct man *p, int n ) { struct man *q = 1 ; for( ;p
age, p->sex); 2 ; } } data_out( struct man *p, int n ) { struct man *q = __3__; for( ;p
name, p->age, p->sex); }