From 4bef6527e5c2cc038d29fe1657c44d5d215d3dc3 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Sun, 6 Mar 2022 02:05:17 -0500 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20'1.c'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xtaodada --- 1.c | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100644 1.c 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