Need help on everything

Write your question here.

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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
 
#include <iostream>
#include <string>
using namespace std;

class Employee
{
private:
	 
	int employeeId;
	string FirstName;
	string LastName;
	char employee type;
	string employee status;
	int employee assignment;


public: 
	Employee();
	Employee(string, string, char, int);
	double calculatePay();
	void displayEmployee();
	string getFirstName();
	string setFirstName(string);
	string getLastName();
	string setLastName(string);
	char getEmployeetype();
	char setEmployeetype(char);
	int getEmployeeassignment();
	int setEmployeeassignment(int); 
}; 


class Employee 

{

 public:    

Employee();

Employee(string first, string last, char type, int assi); 

 string getFirstName();   
{

return firstName;

}

void setFirstName(string name);

{

firstName = name;

}

string getLastName();

{

 return lastName;

}

void setLastName(string name);

 {

lastName = name;

}

char getEmployeetype()

{

 return type;

}
void setEmployeetype(char type);

{

 switch (type)

}

{



void displayEmployee();

void Main();

{

firstName = "not given";

lastName = "not given";

void displayEmployee();

string getFirstname();

void setFirstName(string first);

string getLastName();

void setLastName(string last);

char 

}

{

cout<<"Employee Information\n";

  
  

Do you have a question that we can help with?
@ OP, are you serious?

First you double post:

http://www.cplusplus.com/forum/beginner/176848/

Then, you post the same code again without fixing some of the syntax errors I gave on the above link.

Be specific on the question.

http://www.cplusplus.com/forum/articles/40071/#msg218019

closed account (48T7M4Gy)
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
68
69
70
71
72
73
74
75
76
77
#include <iostream>
#include <string>

using namespace std;

class Employee {
private:
	int employeeId;
	string FirstName;
	string LastName;
	char employee_type;
	string employee_status;
	int employee_assignment;

public:
	Employee();
	Employee(string, string, char, int);
	double calculatePay();
	void displayEmployee();
	string getFirstName();
	void setFirstName(string);
	string getLastName();
	void setLastName(string);
	char getEmployeetype();
	void setEmployeetype(char);
	int getEmployeeassignment();
	int setEmployeeassignment(int);
};

Employee::Employee() {
}

Employee::Employee(string first, string last, char type, int assi) {

}

string Employee::getFirstName() {
	return FirstName;
}

void Employee::setFirstName(string name) {
	FirstName = name;
}

string Employee::getLastName() {
	return LastName;
}

void Employee::setLastName(string name){
	LastName = name;
}

char Employee::getEmployeetype(){
	return employee_type;
}

void Employee::setEmployeetype(char type) {
	//switch (type);
}

void Employee::displayEmployee() {
}

int main()
{
	//firstName = "not given";
	//lastName = "not given";
	void displayEmployee();
	string getFirstname();
	void setFirstName(string first);
	string getLastName();
	void setLastName(string last);

	cout << "Employee Information\n";

	return 0;
}


OP can fix up the rest!!
Last edited on
Topic archived. No new replies allowed.