fork download
  1. #include "stdafx.h"
  2. #include "Employee.h"
  3.  
  4.  
  5. Employee::Employee(std::string sName, std::string sYMD, int iYears, int iSalary)
  6. {
  7. Employee::SetName(sName);
  8. Employee::SetBirthday(sYMD);
  9. Employee::SetYear(iYears);
  10. Employee::SetSalary(iSalary);
  11. }
  12.  
  13.  
  14. Employee::~Employee()
  15. {
  16. }
  17. void Employee::SetName(std::string Name) {
  18. m_sName = Name;
  19. }
  20. void Employee::SetBirthday(std::string Day) {
  21. m_sBirthday = Day;
  22. }
  23.  
  24. void Employee::SetYear(int iYear) {
  25. m_iYears = iYear;
  26. }
  27. void Employee::SetSalary(int iSalary) {
  28. m_iSalary = iSalary;
  29. }
  30. std::string Employee::GetBirthday(void) {
  31. return m_sBirthday;
  32. }
  33. std::string Employee::GetName(void) {
  34. return m_sName;
  35. }
  36. int Employee::GetSalary(void) {
  37. return m_iSalary;
  38. }
  39. int Employee::GetYear(void){
  40. return m_iYears;
  41. }
  42.  
  43. void Employee::form(void){
  44. std::cout << Employee::GetName << ","
  45. << Employee::GetBirthday << ","
  46. << Employee::GetSalary << ","
  47. << Employee::GetYear << std::endl;
  48. }
  49.  
  50.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:20: fatal error: stdafx.h: No such file or directory
compilation terminated.
stdout
Standard output is empty