#include <stdio.h>
struct xsxx
{
char xh[10];
char xm[8];
char xb[2];
float cj;
};
int main()
{
struct xsxx xx[5];
strcpy(xx[0].xh,"001");
strcpy(xx[0].xm,"wyf");
strcpy(xx[0].xb,"nn");
xx[0].cj=90.0;
printf("%s %s %s %0.1f\n", xx[0].xh,
xx[0].xm,xx[0].xb,xx[0].cj);
printf("press enter end");
getchar();
}
温馨提示:答案为网友推荐,仅供参考