Question: 1. Write a complete program that does the following: In c++ - Declare a structure called employee with two elements: name : type string salary
1. Write a complete program that does the following: In c++ - Declare a structure called employee with two elements: name : type string salary : type float - Prompt user to enter number of employees - Create a dynamic array of structure employee (array size equals number of employees) - Prompt user to enter employee name and salary Sample Output : Enter number of employees: 2 Employee 1 Enter name: Amy Enter salary: 2520 Employee 2 Enter name: Brian Enter salary: 3500
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
