Based off of this information all I need to know is how to call the functions in main. I know how to fill the arrays with everything I need but I cannot figure out how to call the functions in main. My last post appeared to be hard to understand so I am taking another shot at it with some simpler, more straight forward code.
void getSales(double[QUARTERS], int); // places sales figures into the array
void printSales(double[QUARTERS], int); // prints data as a table
void printTableHeading(); // prints table heading
double sales[YEAR_COUNT][QUARTERS]; // 2D array to hold the sales transactions
int years[YEAR_COUNT]; // 1D array to hold the years
void getSales(double salesTable[QUARTERS],int yearArray)
void printSales(double salesTable[QUARTERS], int yearArray)
Having a hard time finding it here on the site. I am having a difficult time because I have a 1-d array and also a 2-d array in my function definitions. I am yet to find an example that shows how to call both types of arrays in a single function.