All pastes #1390841 Raw Edit

Untitled

public text v1 · immutable
#1390841 ·published 2009-04-13 18:35 UTC
rendered paste body
#include <iostream>
#include <string>
#include "Employee.h"

int main()
{
	Employee troy;
	Employee james("James", "Arthur", "311-22-3333", 22, 1, 1998);
	int * ptr;
	int num_of_employees, counter;

	cout << "A. Testing the default constructor: " << endl;
	troy.display();
	cout << endl;

	cout << "B. Testing overloaded constructor: " << endl;
 	james.display();
	

	cout << "C: Testing dynamic arrays: "
	cout << "Enter the number of employees: "
	cin >> num_of_employees;
	cout << endl;

	ptr = new Employee[num_of_employees];

        for (counter = 1; counter <= num_of_employees; counter++)
	{
		cout << "Employee " << counter << ":" << endl;
		cout << "Enter first name: ";
		cin >> 

	 // Write a loop to display all the employees to the screen.

             // Release dynamically allocated memory.

             return 0;
}