Menu

[solved] – Question 75750

The person.txt file contains data in a table storing Name, Sex, Address and phone number. The amount of lines of data is not known,data reading is terminated by a line containing “end” only. Declare a struct “Person” to store the information on each person and write a function, readPersoninfo, which accepts a one-dimensional array of Person structs as a parameter and reads the data from person.txt and stores it in the array. The function should return the amount of persons that was read from the file.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *