Question: C++ PROGRAMMING LANGUAGE 4. Write the lines of code that will generate what is requested in each part. Assume that using namespace std;, all necessary

 C++ PROGRAMMING LANGUAGE 4. Write the lines of code that will

generate what is requested in each part. Assume that using namespace std;,

C++ PROGRAMMING LANGUAGE

4. Write the lines of code that will generate what is requested in each part. Assume that using namespace std;, all necessary headers are provided, and abide by good coding practices. You do not need to include comments. (a) (10 points) Consider the code below. Devise a class, Directory, which contains a vector and the following member functions: add employee (Employee*) that add new employees to your vector, print that print all employees, and clean up to reclaim any dynamically allocated objects. Your Directory class should work with the main function below. Only write the Directory class. class Employee public: Employee (string input_name, int input_salary) {name = input_name; salary = input _salary; } virtual "Employee() {} and the following member functions: add employee (Employee*) that add new employees to your vector, print that print all employees, and clean up to reclaim any dynamically allocated objects. Your Directory class should work with the main function below. Only write the Directory class. class Employee public: Employee (string input_name, int input_salary) {name = input_name; salary = input _salary; } virtual "Employee() {}

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!