The last three teams

Hello friends :).
I have a problem with a C + + program.
I have the structure and array. Structure is:
1
2
3
4
5
6
7
struct otbor { 
char imenaotbora[40];
int vgolove;
int dgolove;
int tochki;
} otbori[500],tempotbor;

I want to bring out 3 teams with the lowest points(tochki).
What will happen? Thanks for the help.
Use std::sort and implement operator< for the class (or provide your own predicate):
http://www.cplusplus.com/reference/algorithm/sort/
HI ,
What code have you written .
Code for this output can not write. Here is the entire program code, written here without it.
http://codepaste.dev7studios.com/item/u6kw1fm44
Topic archived. No new replies allowed.