Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial And Accounting Principles In Islamic Finance

Authors: Samir Alamad

1st Edition

3030162982, 9783030162986

More Books

Students also viewed these Accounting questions