Question: Create a function int readresults( Member members[] )which reads the data.txt file and stores its entire contents into an array members[100] of type Member where

Create a function int readresults( Member members[] )which reads the data.txt file and stores its entire contents into an array members[100] of type Member where Member is a struct declared as follows:

a. int id

b. char firstname[20]

c. char lastname[20]

d. char result[9]

e. dt of type Date where Date is a struct consisting of: i. int day ii. int month iii. int year The function readresults( ) returns the number of lines that were read. The number of lines are finally printed in the main function. Then print it in separate file "results.txt".

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Accounting Questions!