How can I sort the vector elements using members as the key in C++
- by skydoor
suppose we have a
vector<student> allstudent
Now I would like to sort the students using different memebers,such as name, age, address, like that.
How can I do that?