1234567891011121314
struct score { int goals; int rank; }; score get_score(const player& p) { score s; // ... calculate score total goals and rank return s; }
1234
void calc_game(const player& p; int& goals, int& rank) { // set goals and rank here }