Hello guys i am writing a c++ code that should do the following:
1- Creating a stage group just like the champions league first round consisting of 4 teams each on has 4 attributes ( points, gf, ga, gd)
2- The user must be asked to enter each team name, how many points does it have, how many gf, ga (gd is automatically calculated when gf and ga are entered gd=gf-ga)
3- I need to create an array of objects. each object has the attribiutes above (team name, pts, gf, ga gd)
4- I need to sort and output the group from the first till the last as following (most pts, most gd, most gf)
Thank you