Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a program that has the following functionality using c++ Define a structure that has a string for a persons first name, an integer for
Write a program that has the following functionality using c++
- Define a structure that has a string for a persons first name, an integer for a persons age, and a character for a persons gender.
- Create a data file that consists of five records based on the information above.
- Create an array of structures and pass that array to a function called ReadData where the array will be filled by reading from the data file.
- Create a function called DisplayOne that is passed one element of the array by value and is then displayed to the screen.
- Create a function called EditRef that is passed an element of the array by reference. The function will then allow the user to edit the information in the structure.
- Create another function called EditPointer that has the same functionality as EditRef except that the structure is passed by pointer.
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