Question: Heeeeelp plz using c++ In a header file Employee.h, create a Record structure that contains the following information: employeeID, firstName, lastName, startYear. employeeID is an

Heeeeelp plz

using c++

  1. In a header file Employee.h, create a Record structure that contains the following information: employeeID, firstName, lastName, startYear. employeeID is an integer.

  2. In testEmployee.cpp, first create a record (record1) using normal pointers. Set the values to 2501, Sebastian, Alfredo, 1978

  3. In testEmployee.cpp, create a new record (record2) using a unique smart pointer. Set the values to 2502, Ana, Rubi, 1993

  4. Create a function (or functions) that will print the records to any output stream. Since the print function does not need to change the record, pass record2 by copy.

  5. Create a function (or functions) that will set the year value of an already created record1 or record2 to the current value minus 10. Print the records.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!