|  | 
 
10鱼币 
| //employ.h #pragma once
 #include<iostream>
 #include<string>
 
 using namespace std;
 namespace My_Code
 {
 class employ
 {
 public:
 employ();
 virtual ~employ();
 employ & SetFirstName(const string Fir_Name);
 employ & SetLastLastName(const string Last_Name);
 employ & SetNumberID(const long Number);
 virtual employ & SetSalary(const long Salary);
 const string & GetFistName() const;
 const string & GetLastName() const;
 const long & GetNumberID() const;
 virtual const long & GetSalary() const;
 virtual void Show_Employy_lnfo();
 private:
 employ(const employ&);
 employ & operator=(const employ&);
 string m_firstname;
 string m_lastname;
 long m_NumberID;
 long m_Salary;
 };
 }
 //test.cpp
 #include"employ.h"
 using namespace My_Code;
 
 int main()
 {
 employ m_employ;
 string str1, str2;
 long num, salary;
 cout << "请输入员工名字:\n";
 cin >> str1 >> str2;
 cout << "请输入员工工号:\n";
 cin >> num;
 cout << "请输入员工工资:\n";
 cin >> salary;
 m_employ.SetFirstName(str1).SetLastLastName(str2).SetNumberID(num)
 .SetSalary(salary).Show_Employy_lnfo();
 return 0;
 }
 
 1>test.obj : error LNK2019: 无法解析的外部符号 "public: __thiscall My_Code::employ::employ(void)" (??0employ@My_Code@@QAE@XZ),该符号在函数 _main 中被引用
 1>test.obj : error LNK2019: 无法解析的外部符号 "public: virtual __thiscall My_Code::employ::~employ(void)" (??1employ@My_Code@@UAE@XZ),该符号在函数 _main 中被引用
 1>test.obj : error LNK2019: 无法解析的外部符号 "public: class My_Code::employ & __thiscall My_Code::employ::SetFirstName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SetFirstName@employ@My_Code@@QAEAAV12@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 _main 中被引用
 1>test.obj : error LNK2019: 无法解析的外部符号 "public: class My_Code::employ & __thiscall My_Code::employ::SetLastLastName(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >)" (?SetLastLastName@employ@My_Code@@QAEAAV12@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z),该符号在函数 _main 中被引用
 1>test.obj : error LNK2019: 无法解析的外部符号 "public: class My_Code::employ & __thiscall My_Code::employ::SetNumberID(long)" (?SetNumberID@employ@My_Code@@QAEAAV12@J@Z),该符号在函数 _main 中被引用
 1>E:\代码\练习\录入系统\Debug\录入系统.exe : fatal error LNK1120: 5 个无法解析的外部命令
 
 这是错误提示  我想问问这是哪里错了 找了好久都不知道哪里错
 | 
 |