Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started