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++
-
In a header file Employee.h, create a Record structure that contains the following information: employeeID, firstName, lastName, startYear. employeeID is an integer.
-
In testEmployee.cpp, first create a record (record1) using normal pointers. Set the values to 2501, Sebastian, Alfredo, 1978
-
In testEmployee.cpp, create a new record (record2) using a unique smart pointer. Set the values to 2502, Ana, Rubi, 1993
-
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.
-
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
Get step-by-step solutions from verified subject matter experts
