Home > Back-end >  Help exercises, currently only learn multidimensional arrays and structures, you haven't learne
Help exercises, currently only learn multidimensional arrays and structures, you haven't learne

Time:09-26

There are N students value defined by the symbolic constant (N), the student's information include: student id, name, course grades and grade 5), enter the relevant information for each of the students, statistics of each student's grade and N student grade average, the final output each student all the information and N of student's overall average,

CodePudding user response:

Turn to turn for help

CodePudding user response:

Is to enter N

CodePudding user response:

With the structure arrays,
Struct student
{
Char xh [15].
char name[20];
Int score1.
Int score2;
Int score3;
Int score4;
Int score5;
Int total;
} STU.

STU array [10].
Like this, the rest of the operation, and array

CodePudding user response:

Struct student
{
Int number, s1, s2, s3, s4, s5.
String name;
}

CodePudding user response:

references at the end of the second floor filmmaker 014 response:
is to input a N
for user input N

CodePudding user response:

reference CHXCHXKKK reply: 3/f
with structure arrays,
Struct student
{
Char xh [15].
char name[20];
Int score1.
Int score2;
Int score3;
Int score4;
Int score5;
Int total;
} STU.

STU array [10].
Like this, like the rest of the operations and array
thank you
  • Related