Advertisement
hacityler

func

Mar 30th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. int taskC(std::vector<Employee> company)
  2. {
  3.     int counter = 0;
  4.    
  5.     for (unsigned int i = 1; i<company.size(); ++i)
  6.     {
  7.         if (company[i-1].salary != company[i].salary)
  8.         {
  9.             counter++;         
  10.         }
  11.     }
  12.     return counter;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement