current position:Home>Initialization of structure variables, application

Initialization of structure variables, application

2022-02-02 12:55:13 CSDN Q & A

1) Define a structure type stud (int id, char name[20], char banj[30], char sex, float scorel,float score2, float total)
2) Definition An array of structures s[5], And before initialization 2 Personal data , Input from keyboard 3 Personal data .
3) Will this 5 Write personal data to a file a.txt in
4) from a.txt Read out the data in the computer , Store in s[5] in , Implemented by loop 5 Calculation of personal data and screen output .

Refer to the answer 1:

Which part is difficult ?

Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.

Random recommended