Answered step by step
Verified Expert Solution
Link Copied!

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++

  1. 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.
  2. Create a data file that consists of five records based on the information above.
  3. 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.
  4. Create a function called DisplayOne that is passed one element of the array by value and is then displayed to the screen.
  5. 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.
  6. 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

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

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

Explain the steps involved in training programmes.

Answered: 1 week ago