When I compile this program, I'm getting the error that salesArray is undefined in main(). I am not sure what else to do. this is not a complete program, this is just the beginning. This program is supposed to add all sales total for each month, and print the monthly totals, total sales for the year, best month, worst month. Thanks!
I get no error when I compile your posted code using Visual Studio.
What compiler are you using?
Please post the EXACT error message you're getting.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.
the exact error message I am getting in Quincy is:
in function 'main':
29: undefined reference to 'printSalesArray(double*)'
30: undefined reference to 'findSum(double*)'
31: undefined reference to 'findMean(double*)'
32: undefined reference to 'findHighMonth(double*)'
33: undefined reference to 'findLowMonth(double*)'
collect2: Id returned 1 exit status
Sorry to be difficult but I'm extremely new to programming and don't really know what the code tags do but I will look into it and try to change it.
You're calling functions in main that haven't been defined yet (you just have the function prototypes set up). I'd try commenting out the calls to functions you haven't written yet.