C/C++ Arena

Step 4 of 6

Arrays of structs

An array of structs is like a table: one struct per row.

Your turn: the input is n followed by n lines of name kills. Print the name of the player with the most kills (the first one wins ties).

3
ropz 18
broky 25
rain 25

prints MVP: broky.

Previous: Pointers to structs and -> Next: enum