Hello People, I've joined this forum and I need some help with sorting a vector of structures. Here is the problem:
I have the following structure>
struct student
{
char name[20];
char lastname[20];
int points;
} class[10];
Can you help me figuring out a void function that will have a struct student vector (or its reference) as an input element, and some other number, int n (in this case 10), that will sort the vector class[10] by lastname? :idea:
Thanks