Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.83 KB | None | 0 0
  1. A message from the underworld :)
  2.  
  3. class JobOpportunity
  4. {
  5. public:
  6. enum class Satisfaction { Low, Medium, High, TheBest };
  7.  
  8. void SetCompany(std::string company);
  9. void SetExpectedSatisfaction(Satisfaction satisfaction);
  10. };
  11.  
  12. void TakeTheNextStep()
  13. {
  14. auto opportunity = std::make_unique<JobOpportunity>();
  15. opportunity->SetCompany("Magneti Marelli");
  16. opportunity->SetExpectedSatisfaction(JobOpportunity::Satisfaction::TheBest);
  17.  
  18. ScheduleAnInterview(*opportunity);
  19. }
  20.  
  21. void SetupSuccessfulCareer(Career& c)
  22. {
  23. // Setup event callbacks
  24. c.ReadyForAGreatExperience.push_back(TakeTheNextStep);
  25. c.StagnantCareer.push_back(TakeTheNextStep);
  26. c.NotFeelingImportant.push_back(TakeTheNextStep);
  27. c.NotDoingSomethingInteresting.push_back(TakeTheNextStep);
  28. }
  29.  
  30. int main()
  31. {
  32. Career c;
  33. SetupSuccessfulCareer(c);
  34. return RunCareerMainLoop(c);
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement