I have a code and i am using arrays and it is mostly completed. What im doing is getting the average of 8 players on their hits walks and outs, but i need to figure out how to get the full team average. As well as getting it started at 1 instead of 0. Any help is greatly appreciated thanks.
#include <iostream>
#include <conio.h>
using namespace std;
const int MAX=8;
// Chapter 11 introduction
struct player_type
{
int hits;
int walks;
int outs;