Class building errors

Good evening!
Here is the Employee class I am currently writing for a project.
It seems that it isn't recognizing my "using namespace std;"


I am getting error C2327 for almost every string in here.

I may be looking over something quite simple.
If anyone has any info, please let me know, and thanks in advanced!

-gage







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
#ifndef Employee
#define Employee
#include <iostream>
#include <string>
using namespace std;

class Employee {
public:
	Employee(string Lname, string Fname, int ID, int salary, string dept, string phone, string building, string date, string email);
	Employee();
	void setLname(string name);
	void setFname(string name);
	void setID(int id);
	void setsalary(int salary);
	void setdept(string dept);
	void setphone(string phone);
	void setbuilding(string building);
	void setdate(string date);
	void setemail(string email);
private:
	string Lname;
	string Fname;
	int ID;
	int salary;
	string dept;
	string phone;
	string building;
	string date;
	string email;
};

#endif 



We can't really help you without the implementation file and maybe a main file so we can compile it and help you with it.
Last edited on by closed account z6A9GNh0
Topic archived. No new replies allowed.