#include struct Worke Int num char name[201 float pay maino Int l float sum=0 struct Worker*p, per[3] printf("请输入三名职工的编号、姓名、性别和工资:in"), for(i=0;inum, p->name, p->sex, p->pay ); printf("工资总数为:%0.fn"sum)
#include struct Worker { int num; char name[20]; char sex; float pay; }; main() { int i; float sum=0; struct Worker*p,per[3]; printf("请输入三名职工的编号、姓名、性别和工资:\n"); for(i=0;inum,p->name,p->sex,p->pay); printf("工资总数为:%0.1f\n",sum); }