Home > Back-end >  Strives for the bosses to help have a look.
Strives for the bosses to help have a look.

Time:01-03

Set up the following structure:
Struct student {
Char name [8].
Long num.
Int score;
};
Input class name with circular statement, five students' information, and in binary mode. Save to file student stu, setting. Stu format file structure is as follows:
STU//file type identification, S, T, U, these three characters
Class name//the user input data, stored in a character array
The number of students//integer data, subject to 5
Information on student 1
Student 2 information
Student 3 information
Student 4 information
Student 5 information
Then the above files in binary form open, read the data and display on the screen, (post code and run the screenshots)
  • Related