cout won't work from within function (ambiguos)

Hello everyone,
I am new to this site and decently new to programming. I am working on a school assignment and keep getting the "cout is ambiguous" error whenever I try to use the cout method within one of the functions I created. The function takes an array pointer and sums up all the values, then returns the value. However, i want to put a cout statement in the function as well, but it won't let me. Please help.
We need to see your code to be able to help. Be sure you post the code inside code tags.

Also you do know that you can't print the whole array with one call?

Topic archived. No new replies allowed.