Question: Exercise 1 0 . 3 Consider the following struct: typedef struct { char initial 1 ; char intial 2 ; char intial 3 ; int
Exercise Consider the following struct: typedef struct char initial; char intial ; char intial; int score; HighScoreEntry; Write a program that crates an array of highs score structs and write them to a binary file called scores.dat. Write the first operation of this program is to open the scores file and load the values in an array of HighScore structs. Next the program that display a menu to the user to display scores updates score quit Display scores print the struct data values in the array. Update score allows the user update any score in the array by giving the index and the new struct values. Quit will rewrite the file to reflect the changes in the array. Use a loop allow the user to run the menu as often as they like. Quit the
progam and rerun it your score changes should persist.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
