No idea what is with this class and arrays stuff

Hey guys, can you help me out with this exam review question that states:

Give the following declarations for a class, write C++ code where indicated. Use the comments to help you understand what each function does. Include the required libraries.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// this is in the .h file
class personType
{
private:
	double salary;
	string name;
public:
	//default constructor - sets salary to 0.0 and name to "No name"
	personType ();

	// This function compares two objects of personType
	// returns true of identical, false otherwise
	bool isEqual( personType x);
	
	// This function prints the values int he data members

	void print () const;

	// This function reads the value of the salary and the name

	void readInfo( personType x);

};

personType::
{

//default constructor - write the heading and the body


}
bool
{

	//isEqual function
	//write the heading and the body

}
void
{

//readInfo function
	//write the heading and the body
}
void
{

//print function
	//write the heading and the body
}

void main()
{

// this is the main program file

	//declare arrays called staff of 3 objects of the personType class
	//the first object has the values 10000.00 and the name is Smith, the second object has 25000
	//and Jacob, and the last object has 25000 and the name is Smith

	//Write a C++ statement to compare the staff[0] with staff[2]

	//Write a C++ statement here to print out the data members of each staff object


	system("pause")
}
You have not even attempted to do anything with this yet - no one will help you. The solutions are actually found easily on google, put in some effort and someone may help you.
Topic archived. No new replies allowed.