Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int taskC(std::vector<Employee> company)
- {
- int counter = 0;
- for (unsigned int i = 1; i<company.size(); ++i)
- {
- if (company[i-1].salary != company[i].salary)
- {
- counter++;
- }
- }
- return counter;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement