diff --git a/1.c b/1.c new file mode 100644 index 0000000..75522c5 --- /dev/null +++ b/1.c @@ -0,0 +1,93 @@ +#include +#include +#include +#define MAX 100 +#define MAX_1 100 +typedef struct singer{ + int num; + char name[10]; + char xb[10]; + int score[MAX_1]; +}SING; + +void inarray(SING sing[MAX], int *pnum){ + int n=0; + printf("输入歌手人数:"); + scanf("%d", &n); + printf("请输入%d个歌手的信息:\n",n); + printf("序号\t姓名\t性别\n"); + for(int i=0;i