Write a main function to create EMP, an array of EMPLOYEE objects

Write your question here.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  int main()
{
	//Write Employee class to create Emp array size of 6 below:
	

	cout << "Enter employee details:\n ";
	for (int i = 0; i<6; i++)
	{
		cout << "\nemployee " << i + 1 << endl;
		//Use the Emp object array to access the getdata method, write the content of the Emp array using the getdata() method below

	}
	cout << "\nEmployee details are as follows :";
	cout << "\n\n" << setw(20) << "NAME" << setw(10) << "CODE";
	cout << "\n------------------------------";
	//Display each of the Emp array by accessing the display method below.

	return 0;
}


with result like this
http://i1126.photobucket.com/albums/l612/dominhtrieu1994/a.png

I am stuck with these codes at my class. Could you guys help me?
Topic archived. No new replies allowed.