Skip to content

Instantly share code, notes, and snippets.

@madelinecr
Last active August 29, 2015 14:01
Show Gist options
  • Save madelinecr/151bae11ef7587717ccb to your computer and use it in GitHub Desktop.
Save madelinecr/151bae11ef7587717ccb to your computer and use it in GitHub Desktop.
sort(workers.begin(), workers.end());
for(vector<Employee*>::iterator i = workers.begin(); i != workers.end(); i++) {
cout << "Employee is " << (*i)->grade << " - " << (*i)->name << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment